Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable log rotation for all containers using Compose file #283

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions docker-compose.yml
@@ -1,6 +1,4 @@
version: '3'

services:
services:
db:
image: postgres:15-alpine
restart: always
Expand All @@ -16,6 +14,8 @@ services:
timeout: 3s
retries: 1
start_period: 30s
logging:
driver: local

api:
healthcheck:
Expand Down Expand Up @@ -90,6 +90,8 @@ services:
extra_hosts:
- "${MANAGER_FQDN}:${MANAGER_IP}"
command: /entrypoints/api_entrypoint.sh
logging:
driver: local

nginx:
image: smsntia/nginx:${DOCKER_TAG} # DOCKER_TAG will always be 'latest' for GitHub source
Expand All @@ -115,6 +117,8 @@ services:
- ./configs/certs/${SSL_CA_PATH}:/etc/ssl/certs/ca.crt:ro
environment:
- DOMAINS
logging:
driver: local

# This is a stop-gap until Docker adds the capability to restart unhealthy
# containers natively.
Expand All @@ -133,3 +137,5 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- ./entrypoints/autoheal_entrypoint.sh:/entrypoints/autoheal_entrypoint.sh:ro
command: /entrypoints/autoheal_entrypoint.sh
logging:
driver: local