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

chore(dashmate)!: docker logs rotation #2125

Merged
merged 2 commits into from
Sep 17, 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
8 changes: 8 additions & 0 deletions packages/dashmate/docker-compose.insight_api.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---

x-default-logging: &default-logging
driver: local
options:
max-size: "500m"
max-file: "5"
compress: "true"

services:
core_insight:
image: ${CORE_INSIGHT_DOCKER_IMAGE:?err}
labels:
org.dashmate.service.title: "Core Insight API"
restart: unless-stopped
logging: *default-logging
ports:
- 127.0.0.1:${CORE_INSIGHT_PORT:?err}:${CORE_INSIGHT_PORT:?err}
depends_on:
Expand Down
8 changes: 8 additions & 0 deletions packages/dashmate/docker-compose.insight_ui.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---

x-default-logging: &default-logging
driver: local
options:
max-size: "500m"
max-file: "5"
compress: "true"

services:
core_insight:
image: ${CORE_INSIGHT_UI_DOCKER_IMAGE:?err}
labels:
org.dashmate.service.title: "Core Insight UI"
restart: unless-stopped
logging: *default-logging
ports:
- 127.0.0.1:${CORE_INSIGHT_PORT:?err}:${CORE_INSIGHT_PORT:?err}
depends_on:
Expand Down
8 changes: 8 additions & 0 deletions packages/dashmate/docker-compose.rate_limiter.metrics.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---

x-default-logging: &default-logging
driver: local
options:
max-size: "500m"
max-file: "5"
compress: "true"

services:
gateway_rate_limiter_metrics:
image: ${PLATFORM_GATEWAY_RATE_LIMITER_METRICS_DOCKER_IMAGE:?err}
labels:
org.dashmate.service.title: "Gateway rate limiter metrics exporter"
restart: unless-stopped
logging: *default-logging
entrypoint: /bin/statsd_exporter
command:
- "--statsd.mapping-config=/etc/statsd-exporter/config.yaml"
Expand Down
11 changes: 10 additions & 1 deletion packages/dashmate/docker-compose.rate_limiter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---

x-default-logging: &default-logging
driver: local
options:
max-size: "500m"
max-file: "5"
compress: "true"

services:
gateway:
depends_on:
Expand All @@ -9,10 +16,11 @@ services:
- gateway_rate_limiter

gateway_rate_limiter:
image: ${PLATFORM_GATEWAY_RATE_LIMITER_DOCKER_IMAGE:?err}
labels:
org.dashmate.service.title: "Gateway rate limiter"
restart: unless-stopped
image: ${PLATFORM_GATEWAY_RATE_LIMITER_DOCKER_IMAGE:?err}
logging: *default-logging
command: /bin/ratelimit
depends_on:
- gateway_rate_limiter_redis
Expand Down Expand Up @@ -45,6 +53,7 @@ services:
labels:
org.dashmate.service.title: "Gateway rate limiter storage"
restart: unless-stopped
logging: *default-logging
image: redis:alpine
expose:
- 6379
Expand Down
14 changes: 14 additions & 0 deletions packages/dashmate/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---

x-default-logging: &default-logging
driver: local
options:
max-size: "500m"
max-file: "5"
compress: "true"

services:
dashmate_helper:
image: ${DASHMATE_HELPER_DOCKER_IMAGE:?err}
labels:
org.dashmate.service.title: "Dashmate Helper"
restart: unless-stopped
logging: *default-logging
environment:
- LOCAL_UID=${LOCAL_UID:?err}
- LOCAL_GID=${LOCAL_GID:?err}
Expand All @@ -23,6 +31,7 @@ services:
labels:
org.dashmate.service.title: "Core"
restart: unless-stopped
logging: *default-logging
ports:
- ${CORE_P2P_HOST:?err}:${CORE_P2P_PORT:?err}:${CORE_P2P_PORT:?err}
- ${CORE_RPC_HOST:?err}:${CORE_RPC_PORT:?err}:${CORE_RPC_PORT:?err}
Expand All @@ -46,6 +55,7 @@ services:
labels:
org.dashmate.service.title: "Drive ABCI"
restart: unless-stopped
logging: *default-logging
volumes:
- drive_abci_data:/var/lib/dash/rs-drive-abci/db
environment:
Expand Down Expand Up @@ -102,6 +112,7 @@ services:
labels:
org.dashmate.service.title: "Drive Tenderdash"
restart: unless-stopped
logging: *default-logging
depends_on:
- drive_abci
ports:
Expand All @@ -122,6 +133,7 @@ services:
labels:
org.dashmate.service.title: "DAPI API"
restart: unless-stopped
logging: *default-logging
deploy:
mode: replicated
replicas: ${PLATFORM_DAPI_API_DOCKER_DEPLOY_REPLICAS:-1}
Expand Down Expand Up @@ -156,6 +168,7 @@ services:
labels:
org.dashmate.service.title: "DAPI Transactions Filter Stream"
restart: unless-stopped
logging: *default-logging
deploy:
mode: replicated
replicas: ${PLATFORM_DAPI_API_DOCKER_DEPLOY_REPLICAS:-1}
Expand Down Expand Up @@ -184,6 +197,7 @@ services:
labels:
org.dashmate.service.title: "Gateway"
restart: unless-stopped
logging: *default-logging
ports:
# HTTP entry point to the platform.
# Supports HTTP1 and HTTP2
Expand Down
Loading