mirror of
https://github.com/ptarmiganlabs/butler-sos.git
synced 2025-12-19 17:58:18 -05:00
28 lines
916 B
YAML
Executable File
28 lines
916 B
YAML
Executable File
# docker-compose.yml
|
|
services:
|
|
butler-sos:
|
|
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
|
|
volumes:
|
|
# Make config file accessible outside of container
|
|
- './config:/nodeapp/config'
|
|
- './log:/nodeapp/log'
|
|
environment:
|
|
- 'NODE_ENV=production' # Means that Butler SOS will read config data from production.yaml
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-file: '5'
|
|
max-size: '5m'
|