Robustness: Add json-file log rotation limits to all docker services
This commit is contained in:
@@ -28,6 +28,11 @@ services:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-translate} -d ${POSTGRES_DB:-translate_db}"]
|
||||
interval: 10s
|
||||
@@ -53,6 +58,11 @@ services:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
@@ -116,6 +126,11 @@ services:
|
||||
- logs_data:/app/logs
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -155,6 +170,11 @@ services:
|
||||
- NEXT_PUBLIC_GOOGLE_CLIENT_ID=${NEXT_PUBLIC_GOOGLE_CLIENT_ID:-}
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
@@ -176,6 +196,11 @@ services:
|
||||
- ollama_data:/root/.ollama
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
@@ -205,6 +230,11 @@ services:
|
||||
- '--web.enable-lifecycle'
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:9090/-/healthy"]
|
||||
interval: 30s
|
||||
@@ -232,6 +262,11 @@ services:
|
||||
- "3001:3000"
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
depends_on:
|
||||
prometheus:
|
||||
condition: service_healthy
|
||||
@@ -260,6 +295,11 @@ services:
|
||||
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|etc|var/lib/docker)($$|/)'
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# ===========================================
|
||||
# cAdvisor - Container Metrics
|
||||
@@ -279,6 +319,11 @@ services:
|
||||
- /dev/kmsg
|
||||
networks:
|
||||
- wordly-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# ===========================================
|
||||
# Networks
|
||||
|
||||
Reference in New Issue
Block a user