Configure logging on containers

This commit is contained in:
Sergio Morillo 2021-02-16 16:14:02 +01:00
parent d42b5afed0
commit 34dd938f5e

View file

@ -1,4 +1,10 @@
version: '3'
version: '3.4'
x-logging:
&default-logging
options:
max-size: "5m"
max-file: "3"
services:
postgres:
@ -17,6 +23,7 @@ services:
ports:
- "5432:5432"
shm_size: '128mb'
logging: *default-logging
tryton:
build: .
@ -46,6 +53,7 @@ services:
- code:/home/trytond/tryton
restart:
unless-stopped
logging: *default-logging
nginx:
image: nginx:latest
@ -66,6 +74,7 @@ services:
- tryton
restart:
unless-stopped
logging: *default-logging
# <<<< uncomment to use ssl and certbot
# certbot:
@ -95,6 +104,7 @@ services:
- code:/home/trytond/tryton
restart:
unless-stopped
logging: *default-logging
tryton-worker:
build: .
@ -115,6 +125,7 @@ services:
- code:/home/trytond/tryton
restart:
unless-stopped
logging: *default-logging
volumes:
db: