limit log size on docker to 100KB

pull/24/head
Aevann1 2022-11-27 01:04:39 +02:00 committed by geese_suck
parent 706bebb126
commit 0f37667b4c
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
1 changed files with 17 additions and 0 deletions

View File

@ -15,12 +15,21 @@ services:
depends_on:
- redis
- postgres
logging:
options:
max-size: "100k"
max-file: "1"
redis:
container_name: "redis"
image: redis
ports:
- "6379:6379"
logging:
options:
max-size: "100k"
max-file: "1"
postgres:
container_name: "postgres"
@ -33,9 +42,17 @@ services:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
logging:
options:
max-size: "100k"
max-file: "1"
opera-proxy:
container_name: "opera-proxy"
image: yarmak/opera-proxy
ports:
- "18080:18080"
logging:
options:
max-size: "100k"
max-file: "1"