Skip to content

Commit 02857a7

Browse files
committed
Configure container log length limits
Updated Docker Compose files to set log rotation parameters Added log size and file count limits for all services Prevent excessive disk usage from container logs Improve system performance and storage management
1 parent e083124 commit 02857a7

File tree

11 files changed

+47
-2
lines changed

11 files changed

+47
-2
lines changed

src/openobserve/build/devcontainer/base/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ services:
66
environment:
77
ZO_ROOT_USER_EMAIL: ${ZO_ROOT_USER_EMAIL}
88
ZO_ROOT_USER_PASSWORD: ${ZO_ROOT_USER_PASSWORD}
9+
logging:
10+
driver: "json-file"
11+
options:
12+
max-size: 10m
13+
max-file: 3
914
volumes:
1015
- openobserve-data:/data
1116
networks:

src/openobserve/build/devcontainer/step-ca-trust/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ services:
88
ZO_ROOT_USER_PASSWORD: ${ZO_ROOT_USER_PASSWORD}
99
STEP_CA_TRUST: ${STEP_CA_TRUST:-true}
1010
STEP_CA_TRUST_RESTART: ${STEP_CA_TRUST_RESTART:-true}
11+
logging:
12+
driver: "json-file"
13+
options:
14+
max-size: 10m
15+
max-file: 3
1116
volumes:
1217
- openobserve-data:/data
1318
networks:

src/openobserve/build/forwarding/base/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ services:
66
environment:
77
ZO_ROOT_USER_EMAIL: ${ZO_ROOT_USER_EMAIL}
88
ZO_ROOT_USER_PASSWORD: ${ZO_ROOT_USER_PASSWORD}
9+
logging:
10+
driver: "json-file"
11+
options:
12+
max-size: 10m
13+
max-file: 3
914
volumes:
1015
- openobserve-data:/data
1116
ports:

src/openobserve/build/forwarding/step-ca-trust/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ services:
88
ZO_ROOT_USER_PASSWORD: ${ZO_ROOT_USER_PASSWORD}
99
STEP_CA_TRUST: ${STEP_CA_TRUST:-true}
1010
STEP_CA_TRUST_RESTART: ${STEP_CA_TRUST_RESTART:-true}
11+
logging:
12+
driver: "json-file"
13+
options:
14+
max-size: 10m
15+
max-file: 3
1116
volumes:
1217
- openobserve-data:/data
1318
ports:

src/openobserve/build/letsencrypt/base/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ services:
1010
VIRTUAL_HOST: ${VIRTUAL_HOST}
1111
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
1212
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
13+
logging:
14+
driver: "json-file"
15+
options:
16+
max-size: 10m
17+
max-file: 3
1318
volumes:
1419
- openobserve-data:/data
1520
networks:

src/openobserve/build/letsencrypt/step-ca-trust/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ services:
1212
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
1313
STEP_CA_TRUST: ${STEP_CA_TRUST:-true}
1414
STEP_CA_TRUST_RESTART: ${STEP_CA_TRUST_RESTART:-true}
15+
logging:
16+
driver: "json-file"
17+
options:
18+
max-size: 10m
19+
max-file: 3
1520
volumes:
1621
- openobserve-data:/data
1722
networks:

src/openobserve/build/step-ca/base/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ services:
1010
VIRTUAL_HOST: ${VIRTUAL_HOST}
1111
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
1212
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
13+
logging:
14+
driver: "json-file"
15+
options:
16+
max-size: 10m
17+
max-file: 3
1318
volumes:
1419
- openobserve-data:/data
1520
networks:

src/openobserve/build/step-ca/step-ca-trust/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ services:
1212
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
1313
STEP_CA_TRUST: ${STEP_CA_TRUST:-true}
1414
STEP_CA_TRUST_RESTART: ${STEP_CA_TRUST_RESTART:-true}
15+
logging:
16+
driver: "json-file"
17+
options:
18+
max-size: 10m
19+
max-file: 3
1520
volumes:
1621
- openobserve-data:/data
1722
networks:

src/openobserve/components/base/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ services:
66
environment:
77
ZO_ROOT_USER_EMAIL: ${ZO_ROOT_USER_EMAIL}
88
ZO_ROOT_USER_PASSWORD: ${ZO_ROOT_USER_PASSWORD}
9+
logging:
10+
driver: "json-file"
11+
options:
12+
max-size: 10m
13+
max-file: 3
914
volumes:
1015
- openobserve-data:/data
1116
volumes:

0 commit comments

Comments
 (0)