mirror of
https://gitlab.com/datalifeit/docker-tryton
synced 2023-12-14 05:43:04 +01:00
Configure logging on containers
This commit is contained in:
parent
d42b5afed0
commit
34dd938f5e
1 changed files with 12 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue