Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

chore(stack): cap container logs at three 10 MB files

Hampus4f1780a08dc5
diff --git a/fluxer_rexctl/internal/stack/files/docker-compose.yml b/fluxer_rexctl/internal/stack/files/docker-compose.yml
index 68e3dbae6..971f18a84 100644
--- a/fluxer_rexctl/internal/stack/files/docker-compose.yml
+++ b/fluxer_rexctl/internal/stack/files/docker-compose.yml
@@ -217,9 +217,16 @@ x-fluxer-env: &fluxer-env
FLUXER_MEDIA_PROXY_UPLOAD_RELAY_TOKEN_TTL_SECS: ${FLUXER_MEDIA_PROXY_UPLOAD_RELAY_TOKEN_TTL_SECS:-}
FLUXER_MEDIA_PROXY_UPLOAD_RELAY_KEEP_DIRECT_COUNTRIES: ${FLUXER_MEDIA_PROXY_UPLOAD_RELAY_KEEP_DIRECT_COUNTRIES:-}
+x-fluxer-logging: &fluxer-logging
+ driver: json-file
+ options:
+ max-size: ${FLUXER_LOG_MAX_SIZE:-10m}
+ max-file: "${FLUXER_LOG_MAX_FILE:-3}"
+
x-fluxer-service: &fluxer-service
restart: ${FLUXER_RESTART_POLICY:-unless-stopped}
networks: [fluxer]
+ logging: *fluxer-logging
x-fluxer-app-healthcheck: &fluxer-app-healthcheck
interval: ${FLUXER_HEALTHCHECK_INTERVAL:-10s}
@@ -395,6 +402,7 @@ services:
limits:
memory: ${FLUXER_SEAWEEDFS_INIT_MEMORY_LIMIT:-128mb}
networks: [fluxer]
+ logging: *fluxer-logging
depends_on:
seaweedfs: {condition: service_healthy, restart: true}
restart: "no"