feat: log limit added (#202)

This commit is contained in:
Ashutosh Singh
2025-09-26 23:59:46 +05:30
committed by GitHub
parent a145bd6cfc
commit c10b89dcf7

View File

@@ -16,6 +16,11 @@ services:
condition: service_healthy
op-api:
condition: service_healthy
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
op-db:
image: postgres:14-alpine
@@ -30,6 +35,11 @@ services:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Uncomment to expose ports
# ports:
# - 5432:5432
@@ -45,6 +55,11 @@ services:
interval: 10s
timeout: 5s
retries: 5
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Uncomment to expose ports
# ports:
# - 6379:6379
@@ -67,6 +82,11 @@ services:
nofile:
soft: 262144
hard: 262144
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
op-api:
image: lindesvard/openpanel-api:latest
@@ -92,6 +112,11 @@ services:
condition: service_healthy
env_file:
- .env
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
op-dashboard:
image: lindesvard/openpanel-dashboard:latest
@@ -106,6 +131,11 @@ services:
interval: 10s
timeout: 5s
retries: 5
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "3"
op-worker:
image: lindesvard/openpanel-worker:latest
@@ -123,6 +153,11 @@ services:
deploy:
mode: replicated
replicas: $OP_WORKER_REPLICAS
logging:
driver: "json-file"
options:
max-size: "30m"
max-file: "3"
volumes:
op-db-data: