Skip to content

Commit

Permalink
add container logging management
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Aug 10, 2024
1 parent 1d6d2cf commit 361d42c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
#
###############################################################################

x-logging: &logging
logging:
driver: json-file
options:
mode: non-blocking
max-buffer-size: 100m
max-size: 10m
max-file: 1

services:
wis2-grep-backend:
container_name: wis2-grep-backend
Expand Down Expand Up @@ -49,6 +58,7 @@ services:
retries: 100
networks:
- wis2-grep-net
<<: *logging

wis2-grep-broker:
container_name: wis2-grep-broker
Expand All @@ -59,6 +69,7 @@ services:
- wis2-grep.env
networks:
- wis2-grep-net
<<: *logging

wis2-grep-management:
container_name: wis2-grep-management
Expand All @@ -81,6 +92,7 @@ services:
command: ["pywis-pubsub", "subscribe", "--config", "/app/docker/pywis-pubsub.yml", "--verbosity", "DEBUG"]
networks:
- wis2-grep-net
<<: *logging

wis2-grep-api:
container_name: wis2-grep-api
Expand All @@ -101,6 +113,7 @@ services:
restart: unless-stopped
networks:
- wis2-grep-net
<<: *logging

volumes:
wis2-grep-backend-data:
Expand Down

0 comments on commit 361d42c

Please sign in to comment.