Skip to content

Commit

Permalink
chore: Set maximum log size on docker-compose (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanmigimeno authored Jul 5, 2024
1 parent a54dbda commit 63542e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ UNDERWRITER_PORT=3100
REDIS_PORT=6379
RELAYER_HOST=127.0.0.1
RELAYER_PORT=3000

MAX_LOG_SIZE="500m"
MAX_LOG_FILES="5"
5 changes: 5 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ services:
restart: unless-stopped
networks:
- generalised-relayer_default
logging:
driver: 'local'
options:
max-size: ${MAX_LOG_SIZE:-500m}
max-file: ${MAX_LOG_FILES:-5}

networks:
generalised-relayer_default:
Expand Down

0 comments on commit 63542e1

Please sign in to comment.