-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (24 loc) · 822 Bytes
/
docker-compose.yml
File metadata and controls
25 lines (24 loc) · 822 Bytes
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
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)
- "9090:9090" # WebSocket sync (NodeDB-Lite edge clients)
volumes:
- nodedb-data:/var/lib/nodedb
environment:
NODEDB_HOST: "0.0.0.0"
NODEDB_DATA_DIR: "/var/lib/nodedb"
# NODEDB_MEMORY_LIMIT: "4GiB" # default: 75% of system RAM
# NODEDB_DATA_PLANE_CORES: "4" # default: all CPUs minus one
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6480/health"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
volumes:
nodedb-data: