Refactor docker-compose configuration and improve UdpEvents documentation

This commit is contained in:
Göran Sander
2025-12-07 21:47:00 +01:00
parent 908edb5332
commit 4b5a513871
3 changed files with 21 additions and 19 deletions

View File

@@ -4,19 +4,24 @@ services:
image: ptarmiganlabs/butler-sos:latest
container_name: butler-sos
restart: always
command:
- 'node'
- 'src/butler-sos.js'
- '--configfile'
- '/nodeapp/config/production.yaml'
ports:
- "9997:9997" # UDP user events
- "9996:9996" # UDP log events
- "9842:9842" # Prometheus metrics
- "3100:3100" # Config file visualization
- '9997:9997' # UDP user events
- '9996:9996' # UDP log events
- '9842:9842' # Prometheus metrics
- '3100:3100' # Config file visualization
volumes:
# Make config file accessible outside of container
- "./config:/nodeapp/config"
- "./log:/nodeapp/log"
- './config:/nodeapp/config'
- './log:/nodeapp/log'
environment:
- "NODE_ENV=production" # Means that Butler SOS will read config data from production.yaml
- 'NODE_ENV=production' # Means that Butler SOS will read config data from production.yaml
logging:
driver: "json-file"
driver: 'json-file'
options:
max-file: "5"
max-size: "5m"
max-file: '5'
max-size: '5m'