Avoid logging overflow

This commit is contained in:
Mayel de Borniol 2023-10-10 09:16:43 +01:00
parent 8a0bf39584
commit 2dbc10435d
2 changed files with 10 additions and 0 deletions

View file

@ -6,6 +6,11 @@ services:
image: ${APP_DOCKER_IMAGE}
container_name: "bonfire_web"
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
ports:
- "4000:4000" # you may want to comment this in production
env_file:

View file

@ -5,6 +5,11 @@ version: "3.5"
services:
web:
container_name: "bonfire_web"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "20"
build:
context: .
dockerfile: "Dockerfile.dev"