Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added log retention to avoid storage buildup #16

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docker-compose.miner.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
x-logging: &default-logging
options:
max-size: "50m"

volumes:
postgres-miner-volume:
redis-miner-volume:
Expand Down Expand Up @@ -30,6 +34,7 @@ services:
interval: 5s
timeout: 5s
retries: 5
logging: *default-logging

postgres-miner:
image: postgres:15.7
Expand Down Expand Up @@ -58,6 +63,7 @@ services:
interval: 5s
timeout: 5s
retries: 5
logging: *default-logging

prisma-setup-miner:
platform: linux/amd64
Expand All @@ -77,6 +83,7 @@ services:
- postgres-miner
networks:
- internal
logging: *default-logging

sidecar:
image: docker.io/parity/substrate-api-sidecar:v19.0.2
Expand All @@ -101,6 +108,7 @@ services:
start_period: 30s
networks:
- internal
logging: *default-logging

worker-api:
env_file:
Expand Down Expand Up @@ -142,6 +150,7 @@ services:
start_period: 30s
networks:
- internal
logging: *default-logging

worker-ui:
image: ghcr.io/tensorplex-labs/dojo-ui:tensorplex-prod
Expand All @@ -155,6 +164,7 @@ services:
networks:
- internal
- external
logging: *default-logging

dojo-cli:
image: ghcr.io/tensorplex-labs/dojo:main
Expand Down Expand Up @@ -241,6 +251,7 @@ services:
networks:
- internal
- external
logging: *default-logging

miner-mainnet-centralised:
image: ghcr.io/tensorplex-labs/dojo:main
Expand All @@ -261,3 +272,4 @@ services:
networks:
- internal
- external
logging: *default-logging
10 changes: 10 additions & 0 deletions docker-compose.validator.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
x-logging: &default-logging
options:
max-size: "50m"

volumes:
postgres-validator-volume:
redis-validator-volume:
Expand Down Expand Up @@ -31,6 +35,7 @@ services:
interval: 5s
timeout: 5s
retries: 5
logging: *default-logging

synthetic-api:
image: ghcr.io/tensorplex-labs/dojo-synthetic-api:main
Expand Down Expand Up @@ -61,6 +66,7 @@ services:
# allow docker commands inside container
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logging: *default-logging

postgres-vali:
image: postgres:15.7
Expand Down Expand Up @@ -89,6 +95,7 @@ services:
interval: 5s
timeout: 5s
retries: 5
logging: *default-logging

prisma-setup-vali:
platform: linux/amd64
Expand All @@ -106,6 +113,7 @@ services:
- internal
depends_on:
- postgres-vali
logging: *default-logging

# ============== TEST NET ============== #

Expand Down Expand Up @@ -137,6 +145,7 @@ services:
condition: service_healthy
prisma-setup-vali:
condition: service_completed_successfully
logging: *default-logging

# ============== MAIN NET ============== #

Expand Down Expand Up @@ -168,3 +177,4 @@ services:
condition: service_healthy
prisma-setup-vali:
condition: service_completed_successfully
logging: *default-logging
Loading