forked from github.com/plausible-hosting
Replace docker volumes with bind mounts
This commit is contained in:
14
compose.yml
14
compose.yml
@ -3,7 +3,7 @@ services:
|
||||
image: postgres:16-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
healthcheck:
|
||||
@ -14,8 +14,8 @@ services:
|
||||
image: clickhouse/clickhouse-server:24.12-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- event-data:/var/lib/clickhouse
|
||||
- event-logs:/var/log/clickhouse-server
|
||||
- ./data/clickhouse:/var/lib/clickhouse
|
||||
- ./data/clickhouse-logs:/var/log/clickhouse-server
|
||||
- ./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.
|
||||
# Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings.
|
||||
@ -43,7 +43,7 @@ services:
|
||||
plausible_events_db:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- plausible-data:/var/lib/plausible
|
||||
- ./data/plausible:/var/lib/plausible
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 65535
|
||||
@ -87,9 +87,3 @@ services:
|
||||
- MAILGUN_BASE_URI
|
||||
- MANDRILL_API_KEY
|
||||
- SENDGRID_API_KEY
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
event-data:
|
||||
event-logs:
|
||||
plausible-data:
|
||||
|
Reference in New Issue
Block a user