Configure Docker Compose logging with json-file driver
Added logging configuration to all services in `compose.yaml` with json-file driver. Set max-size to 50m for `app` service and 10m for `nginx`, `postgres`, `relatorio`, and `gotenberg` services, with max-file of 3 for log rotation.
This commit is contained in:
1 file changed
+25
@@ -24,6 +24,11 @@ services:
|
||||
- traefik
|
||||
- default
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
app: &defaultApp
|
||||
image: {{ registry_url }}/{{ registry_project }}/{{ chill_image_php_name }}:{{ item.chill_image_tag }}
|
||||
@@ -45,6 +50,11 @@ services:
|
||||
networks:
|
||||
- default
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "3"
|
||||
|
||||
consumer:
|
||||
<<: *defaultApp
|
||||
@@ -92,12 +102,22 @@ services:
|
||||
networks:
|
||||
- default
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
relatorio:
|
||||
image: "{{ chill_image_relatorio }}"
|
||||
networks:
|
||||
- default
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
###< chill-project/chill-bundles ###
|
||||
|
||||
# sign-worker:
|
||||
@@ -136,6 +156,11 @@ services:
|
||||
networks:
|
||||
- default
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
|
||||
Reference in new issue
Block a user