diff --git a/.env.example b/.env.example index 53c7e68..02901ac 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index ab68a54..f7ddd52 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 @@ -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 @@ -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}