-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (33 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
33 lines (33 loc) · 1.11 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
29
30
31
32
33
services:
njspc:
# Local dev compose: build from current workspace instead of pulling remote image.
build:
context: .
dockerfile: Dockerfile
image: njspc:local
container_name: njspc
restart: unless-stopped
ports:
- "4200:4200"
environment:
- TZ=${TZ:-UTC}
- NODE_ENV=production
# Example overrides as supported by Config.getEnvVariables()
# - POOL_WEB_SERVERS_HTTP_PORT=4200
# Disable network connection and use local serial (rs485)
- POOL_NET_CONNECT=false
# Map RS-485 USB adapter if present, adjust device path
devices:
- /dev/ttyACM0:/dev/ttyUSB0
# Persistence (create host directories/files first)
volumes:
- ./server-config.json:/app/config.json # Persisted config file on host
- njspc-data:/app/data # State & equipment snapshots
- njspc-backups:/app/backups # Backup archives
- njspc-logs:/app/logs # Logs
- njspc-bindings:/app/web/bindings/custom # Custom bindings
volumes:
njspc-data:
njspc-backups:
njspc-logs:
njspc-bindings: