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

Added 50m log limit to all docker containers #1831

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 36 additions & 9 deletions deployment/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ services:
- 27017:27017
environment:
TZ: Europe/Berlin
logging:
options:
max-size: 50m

policies:
image: docker.io/eclipse/ditto-policies:${DITTO_VERSION:-latest}
Expand Down Expand Up @@ -52,7 +55,10 @@ services:
timeout: 15s
retries: 4
start_period: 120s

logging:
options:
max-size: 50m

things:
image: docker.io/eclipse/ditto-things:${DITTO_VERSION:-latest}
mem_limit: 512m
Expand Down Expand Up @@ -81,7 +87,10 @@ services:
timeout: 15s
retries: 4
start_period: 120s

logging:
options:
max-size: 50m

things-search:
image: docker.io/eclipse/ditto-things-search:${DITTO_VERSION:-latest}
mem_limit: 512m
Expand Down Expand Up @@ -110,7 +119,10 @@ services:
timeout: 15s
retries: 4
start_period: 120s

logging:
options:
max-size: 50m

connectivity:
image: docker.io/eclipse/ditto-connectivity:${DITTO_VERSION:-latest}
mem_limit: 768m
Expand Down Expand Up @@ -140,7 +152,10 @@ services:
timeout: 15s
retries: 4
start_period: 120s

logging:
options:
max-size: 50m

gateway:
image: docker.io/eclipse/ditto-gateway:${DITTO_VERSION:-latest}
mem_limit: 512m
Expand Down Expand Up @@ -173,12 +188,18 @@ services:
timeout: 15s
retries: 4
start_period: 120s

logging:
options:
max-size: 50m

ditto-ui:
image: docker.io/eclipse/ditto-ui:${DITTO_VERSION:-latest}
mem_limit: 32m
restart: always

logging:
options:
max-size: 50m

swagger-ui:
image: docker.io/swaggerapi/swagger-ui:v5.9.1
mem_limit: 32m
Expand All @@ -189,8 +210,11 @@ services:
- ../../documentation/src/main/resources/openapi:/usr/share/nginx/html/openapi:ro
- ../../documentation/src/main/resources/images:/usr/share/nginx/html/images:ro
- ./swagger3-index.html:/usr/share/nginx/html/index.html:ro
command: nginx -g 'daemon off;'

command: nginx -g 'daemon off;'
logging:
options:
max-size: 50m

nginx:
image: docker.io/nginx:1.21-alpine
mem_limit: 32m
Expand All @@ -208,7 +232,10 @@ services:
depends_on:
- gateway
- swagger-ui

logging:
options:
max-size: 50m

volumes:
ditto_log_files:
driver: local
Expand Down
Loading