Skip to content

Commit

Permalink
Add logrotate to setup docker composes (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyodar authored Apr 30, 2024
1 parent 1846c2e commit 70c0ef2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/aggregator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ services:
- "4001:4001"
- "4002:4002"
- "9091:9091"
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "50"
compress: "true"

grafana:
image: grafana/grafana:9.4.1
Expand Down
12 changes: 12 additions & 0 deletions setup/operator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ services:
restart: unless-stopped
networks:
- near-sffl
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
compress: "true"

operator:
profiles: [operator]
Expand All @@ -67,6 +73,12 @@ services:
restart: unless-stopped
networks:
- near-sffl
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "50"
compress: "true"

operator-health:
profiles: [operator]
Expand Down
12 changes: 12 additions & 0 deletions setup/relayer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ services:
- --network
- ${NEAR_RPC_URL}
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "20"
compress: "true"

relayer_11155420:
image: ghcr.io/nethermindeth/near-sffl/relayer:${SFFL_RELEASE}
Expand All @@ -32,3 +38,9 @@ services:
- --network
- ${NEAR_RPC_URL}
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "20"
compress: "true"

0 comments on commit 70c0ef2

Please sign in to comment.