diff --git a/docker-compose.miner.yaml b/docker-compose.miner.yaml index 66df980f..53ffa6ad 100644 --- a/docker-compose.miner.yaml +++ b/docker-compose.miner.yaml @@ -1,3 +1,7 @@ +x-logging: &default-logging + options: + max-size: "50m" + volumes: postgres-miner-volume: redis-miner-volume: @@ -30,6 +34,7 @@ services: interval: 5s timeout: 5s retries: 5 + logging: *default-logging postgres-miner: image: postgres:15.7 @@ -58,6 +63,7 @@ services: interval: 5s timeout: 5s retries: 5 + logging: *default-logging prisma-setup-miner: platform: linux/amd64 @@ -77,6 +83,7 @@ services: - postgres-miner networks: - internal + logging: *default-logging sidecar: image: docker.io/parity/substrate-api-sidecar:v19.0.2 @@ -101,6 +108,7 @@ services: start_period: 30s networks: - internal + logging: *default-logging worker-api: env_file: @@ -142,6 +150,7 @@ services: start_period: 30s networks: - internal + logging: *default-logging worker-ui: image: ghcr.io/tensorplex-labs/dojo-ui:tensorplex-prod @@ -155,6 +164,7 @@ services: networks: - internal - external + logging: *default-logging dojo-cli: image: ghcr.io/tensorplex-labs/dojo:main @@ -241,6 +251,7 @@ services: networks: - internal - external + logging: *default-logging miner-mainnet-centralised: image: ghcr.io/tensorplex-labs/dojo:main @@ -261,3 +272,4 @@ services: networks: - internal - external + logging: *default-logging diff --git a/docker-compose.validator.yaml b/docker-compose.validator.yaml index e063ccb4..2e61cf9b 100644 --- a/docker-compose.validator.yaml +++ b/docker-compose.validator.yaml @@ -1,3 +1,7 @@ +x-logging: &default-logging + options: + max-size: "50m" + volumes: postgres-validator-volume: redis-validator-volume: @@ -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 @@ -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 @@ -89,6 +95,7 @@ services: interval: 5s timeout: 5s retries: 5 + logging: *default-logging prisma-setup-vali: platform: linux/amd64 @@ -106,6 +113,7 @@ services: - internal depends_on: - postgres-vali + logging: *default-logging # ============== TEST NET ============== # @@ -137,6 +145,7 @@ services: condition: service_healthy prisma-setup-vali: condition: service_completed_successfully + logging: *default-logging # ============== MAIN NET ============== # @@ -168,3 +177,4 @@ services: condition: service_healthy prisma-setup-vali: condition: service_completed_successfully + logging: *default-logging \ No newline at end of file