limit log size on docker to 100KB

pull/21/head
Aevann1 2022-11-27 01:04:39 +02:00
parent 5f8255d8a6
commit 4eae55e08d
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"