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