Skip to content

Commit

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

# Docker
COMPOSE_PROFILES="wormhole" # Set the docker compose profiles as a comma separated list
MAX_LOG_SIZE="500m"
MAX_LOG_FILES="5"

# Wormhole
SPY_PORT=7073
Expand Down
10 changes: 8 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ services:
- ${REDIS_PORT}:${REDIS_PORT}
attach: false
logging:
driver: 'local'
options:
max-size: 5m
max-size: 50m
max-file: 5

spy:
image: ghcr.io/wormhole-foundation/guardiand:latest
Expand All @@ -27,8 +29,10 @@ services:
attach: false
profiles: ['wormhole']
logging:
driver: 'local'
options:
max-size: 50m
max-file: 5

relayer:
image: ghcr.io/catalystdao/generalised-relayer:testnet
Expand All @@ -49,5 +53,7 @@ services:
depends_on:
- redis
logging:
driver: 'local'
options:
max-size: 5g
max-size: ${MAX_LOG_SIZE:-500m}
max-file: ${MAX_LOG_FILES:-5}

0 comments on commit a58350a

Please sign in to comment.