Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

feat: log limit added (#202)

Ashutosh Singhc10b89dcf757
diff --git a/self-hosting/docker-compose.template.yml b/self-hosting/docker-compose.template.yml
index ca9d7ee8d..64c16c2a7 100644
--- a/self-hosting/docker-compose.template.yml
+++ b/self-hosting/docker-compose.template.yml
@@ -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:
@@ -136,4 +171,4 @@ volumes:
op-proxy-data:
driver: local
op-proxy-config:
- driver: local
+ driver: local
\ No newline at end of file