fix(docker-compose.yml): move logging configuration to individual services

This commit is contained in:
sususu98
2025-03-05 12:06:03 +08:00
parent 99a8c49e6e
commit 89d222d6b5

View File

@@ -6,6 +6,11 @@ services:
shm_size: '1gb'
container_name: jellystat-db
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
@@ -16,6 +21,11 @@ services:
image: cyfershepard/jellystat:latest
container_name: jellystat
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
@@ -36,9 +46,3 @@ networks:
volumes:
postgres-data:
jellystat-backup-data:
logging:
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "10m" # file size