Skip to content

Commit

Permalink
Merge pull request #1924 from SEED-platform/improvement/add-max-file-…
Browse files Browse the repository at this point in the history
…for-logs

Limit log count to 5 before rotating
  • Loading branch information
axelstudios committed Jul 17, 2019
2 parents 04c106f + 3f350a8 commit 1842c65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
deploy:
restart_policy:
condition: on-failure
Expand All @@ -36,6 +37,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
deploy:
restart_policy:
condition: on-failure
Expand Down Expand Up @@ -72,6 +74,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
deploy:
restart_policy:
condition: on-failure
Expand Down Expand Up @@ -100,6 +103,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
deploy:
restart_policy:
condition: on-failure
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
db-redis:
image: redis:5.0.1
web:
Expand Down Expand Up @@ -48,6 +49,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
web-celery:
image: seedplatform/seed:latest
build: .
Expand All @@ -70,6 +72,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
oep-city-1:
# This is a placeholder. If needed, follow the instructions to enable: https://cloud.docker.com/u/seedplatform/repository/docker/seedplatform/oep
image: seedplatform/oep:1.2
Expand All @@ -80,6 +83,7 @@ services:
logging:
options:
max-size: 50m
max-file: 5
volumes:
seed_pgdata:
external: true
Expand Down

0 comments on commit 1842c65

Please sign in to comment.