chore(docker): limit app container log size to 15MB with 3 file rotation

This commit is contained in:
JamesFlare1212
2026-04-06 18:45:20 -04:00
parent 0b9a42c7f3
commit 02e0e6cafe

View File

@@ -1,11 +1,12 @@
services: services:
# Warp Socks Proxy Service (Internal only - no external ports exposed)
warp-proxy: warp-proxy:
image: ghcr.io/mon-ius/docker-warp-socks:v5 image: ghcr.io/mon-ius/docker-warp-socks:v5
container_name: dsas-cca-warp-proxy container_name: dsas-cca-warp-proxy
restart: unless-stopped restart: unless-stopped
ports: ports:
- "9091:9091" - "9091:9091"
networks:
- cca_network
app: app:
build: build:
@@ -30,13 +31,17 @@ services:
condition: service_healthy condition: service_healthy
warp-proxy: warp-proxy:
condition: service_started condition: service_started
required: false
volumes: volumes:
- ./services/cookies.json:/usr/src/app/services/cookies.json - ./services/cookies.json:/usr/src/app/services/cookies.json
networks: networks:
- cca_network - cca_network
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
logging:
driver: "json-file"
options:
max-size: "15m"
max-file: "3"
redis: redis:
image: "redis:8.0-alpine" image: "redis:8.0-alpine"
@@ -53,9 +58,6 @@ services:
timeout: 5s timeout: 5s
retries: 5 retries: 5
volumes:
redis_data:
networks: networks:
cca_network: cca_network:
driver: bridge driver: bridge