Skip to content

Commit

Permalink
Adds in log limits and rotation in an attempt to prevent demo server …
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Feb 7, 2025
1 parent d62b7c4 commit 8b4fd45
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .data/starter/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: "pg_isready -q -h postgres"
interval: 10s
Expand All @@ -33,6 +38,11 @@ services:
PGUSER: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: "pg_isready -q -h postgres"
interval: 10s
Expand All @@ -49,6 +59,11 @@ services:
volumes:
- mongodb-data:/data/db
- ../build/mongodb:/docker-entrypoint-initdb.d/
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
- MONGO_INITDB_DATABASE=holotel
- MONGO_INITDB_ROOT_USERNAME=root
Expand All @@ -59,6 +74,11 @@ services:
restart: unless-stopped
ports:
- 6379:6379
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

caching:
build:
Expand All @@ -71,6 +91,11 @@ services:
CACHING_PLUGIN_REDIS_URL: ${CACHING_PLUGIN_REDIS_URL}
extra_hosts:
- local.hasura.dev=host-gateway
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
- ../plugins/caching-config.js:/app/src/config.js

Expand Down
30 changes: 30 additions & 0 deletions .data/telco/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: "pg_isready -q -h postgres"
interval: 10s
Expand All @@ -33,6 +38,11 @@ services:
PGUSER: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: "pg_isready -q -h postgres"
interval: 10s
Expand All @@ -53,6 +63,11 @@ services:
- MONGO_INITDB_DATABASE=holotel
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

clickhouse:
image: clickhouse/clickhouse-server
Expand All @@ -65,6 +80,11 @@ services:
hostname: clickhouse
environment:
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
- ../telco/clickhouse/config.d/config.xml:/etc/clickhouse-server/config.d/config.xml
- ../telco/clickhouse/users.d/users.xml:/etc/clickhouse-server/users.d/users.xml
Expand All @@ -76,6 +96,11 @@ services:
restart: unless-stopped
ports:
- 6379:6379
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

caching:
build:
Expand All @@ -88,6 +113,11 @@ services:
CACHING_PLUGIN_REDIS_URL: ${CACHING_PLUGIN_REDIS_URL}
extra_hosts:
- local.hasura.dev=host-gateway
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
- ../plugins/caching-config.js:/app/src/config.js

Expand Down

0 comments on commit 8b4fd45

Please sign in to comment.