-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (27 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
services:
nodedb:
image: farhansyah/nodedb:latest
restart: unless-stopped
ports:
- "6432:6432" # PostgreSQL wire protocol (psql, ORMs)
- "6433:6433" # Native MessagePack protocol (ndb CLI, nodedb-client)
- "6480:6480" # HTTP API (REST, SSE, WebSocket)
# Sync (9090) is omitted: it binds to loopback, so a mapping cannot
# reach it. Front it with a TLS proxy in this network namespace.
volumes:
- nodedb-data:/var/lib/nodedb
environment:
NODEDB_HOST: "0.0.0.0"
NODEDB_DATA_DIR: "/var/lib/nodedb"
# NODEDB_MEMORY_LIMIT: "4GiB" # default: 1 GiB
# NODEDB_DATA_PLANE_CORES: "4" # default: all CPUs minus one
healthcheck:
# The runtime image ships no shell and no curl. Use the built-in
# subcommand, the same probe the Dockerfile's HEALTHCHECK runs.
test: ["CMD", "/usr/local/bin/nodedb", "healthcheck"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
volumes:
nodedb-data: