add log rotation

This commit is contained in:
2026-02-17 18:07:17 +00:00
parent 9600c5ea83
commit b096df8209
17 changed files with 110 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ services:
restart: unless-stopped
healthcheck:
disable: false
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
immich-machine-learning:
container_name: immich_machine_learning
@@ -52,6 +57,11 @@ services:
restart: unless-stopped
healthcheck:
disable: false
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
redis:
container_name: immich_redis
@@ -61,6 +71,11 @@ services:
healthcheck:
test: redis-cli ping || exit 1
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
database:
container_name: immich_postgres
@@ -77,6 +92,11 @@ services:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
shm_size: 128mb
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
volumes:
model-cache: