Replace docker volumes with bind mounts

This commit is contained in:
2025-06-29 19:03:57 -05:00
parent 940f3d94cb
commit 12ccb4bfe7

View File

@ -3,7 +3,7 @@ services:
image: postgres:16-alpine image: postgres:16-alpine
restart: always restart: always
volumes: volumes:
- db-data:/var/lib/postgresql/data - ./data/postgres:/var/lib/postgresql/data
environment: environment:
- POSTGRES_PASSWORD=postgres - POSTGRES_PASSWORD=postgres
healthcheck: healthcheck:
@ -15,8 +15,8 @@ services:
image: clickhouse/clickhouse-server:24.3.3.102-alpine image: clickhouse/clickhouse-server:24.3.3.102-alpine
restart: always restart: always
volumes: volumes:
- event-data:/var/lib/clickhouse - ./data/clickhouse:/var/lib/clickhouse
- event-logs:/var/log/clickhouse-server - ./data/clickhouse-logs:/var/log/clickhouse-server
- ./clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro - ./clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro
# This makes ClickHouse bind to IPv4 only, since Docker doesn't enable IPv6 in bridge networks by default. # This makes ClickHouse bind to IPv4 only, since Docker doesn't enable IPv6 in bridge networks by default.
# Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings. # Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings.
@ -40,7 +40,7 @@ services:
plausible_events_db: plausible_events_db:
condition: service_healthy condition: service_healthy
volumes: volumes:
- plausible-data:/var/lib/plausible - ./data/plausible:/var/lib/plausible
ulimits: ulimits:
nofile: nofile:
soft: 65535 soft: 65535
@ -83,9 +83,3 @@ services:
- MAILGUN_BASE_URI - MAILGUN_BASE_URI
- MANDRILL_API_KEY - MANDRILL_API_KEY
- SENDGRID_API_KEY - SENDGRID_API_KEY
volumes:
db-data:
event-data:
event-logs:
plausible-data: