sane logging for production

production
Cameron Clough 2022-05-02 23:49:52 +01:00
parent 0b629806fc
commit 128f8b4c91
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
1 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,10 @@ services:
ports:
- "80:80"
- "443:443"
logging:
options:
max-size: "200k"
max-file: "10"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# See traefik/traefik.toml for static config
@ -28,6 +32,8 @@ services:
# Use the retropilot-server image from the GitHub Container Registry
image: ghcr.io/retropilot/retropilot-server:production
restart: unless-stopped
logging:
driver: none
volumes:
# Mount dir to /realdata in the container
- /home/retro-data/prod:/realdata
@ -54,6 +60,8 @@ services:
# But run the worker script instead
command: npm run worker
restart: unless-stopped
logging:
driver: none
volumes:
- /home/retro-data/prod:/realdata
env_file:
@ -65,6 +73,10 @@ services:
watchtower:
# automatically update containers when new images are released
image: containrrr/watchtower
logging:
options:
max-size: "200k"
max-file: "10"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --label-enable