fix(logs): cap json-file log size on authentik/immich/mariadb
These three containers were writing multi-GB/day of unbounded logs (authentik_server 3.5GB, immich-server 2.3GB, owncloud_mariadb 2.1GB), a major contributor to a recent 100% disk-full incident. Daemon-wide default (max-size 10m, max-file 3) was also added to /etc/docker/daemon.json on valhalla, but that only covers newly created containers going forward -- these three need the explicit per-service override since they're long-running and won't be recreated otherwise. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
d199b10ba4
commit
13e29d9040
@@ -23,6 +23,11 @@ services:
|
|||||||
- ./blueprints:/blueprints/custom:ro
|
- ./blueprints:/blueprints/custom:ro
|
||||||
ports:
|
ports:
|
||||||
- "9200:9000"
|
- "9200:9000"
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
depends_on:
|
depends_on:
|
||||||
authentik-db:
|
authentik-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -48,6 +48,11 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- MYSQL_DATABASE=owncloud
|
- MYSQL_DATABASE=owncloud
|
||||||
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
|
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
# $$ defers expansion to container runtime (env_file supplies the value)
|
# $$ defers expansion to container runtime (env_file supplies the value)
|
||||||
test: ["CMD-SHELL", "mariadb-admin ping -u root --password=\"$$MYSQL_ROOT_PASSWORD\""]
|
test: ["CMD-SHELL", "mariadb-admin ping -u root --password=\"$$MYSQL_ROOT_PASSWORD\""]
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ services:
|
|||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
- "2283:2283"
|
- "2283:2283"
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
depends_on:
|
depends_on:
|
||||||
- immich-redis
|
- immich-redis
|
||||||
- immich-postgres
|
- immich-postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user