Skip to content

Commit

Permalink
Merge pull request #292 from NTIA/compose-logging
Browse files Browse the repository at this point in the history
local logging configuration in compose.yml
  • Loading branch information
dboulware authored Jun 12, 2024
2 parents 3d78f39 + d2c5307 commit b4cefb7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ services:
timeout: 3s
retries: 1
start_period: 30s
logging:
driver: local
options:
max-file: 20
max-size: 10m


api:
healthcheck:
Expand Down Expand Up @@ -92,6 +98,11 @@ services:
- /dev/nvme0n1:/dev/nvme0n1:ro
extra_hosts:
- "${MANAGER_FQDN}:${MANAGER_IP}"
logging:
driver: local
options:
max-file: 20
max-size: 10m
command: /entrypoints/api_entrypoint.sh

nginx:
Expand All @@ -118,6 +129,11 @@ services:
- ./configs/certs/${SSL_CA_PATH}:/etc/ssl/certs/ca.crt:ro
environment:
- DOMAINS
logging:
driver: local
options:
max-file: 20
max-size: 10m

# This is a stop-gap until Docker adds the capability to restart unhealthy
# containers natively.
Expand Down

0 comments on commit b4cefb7

Please sign in to comment.