From 6fdcceb2d971220bd622230c2f372f3b4a32837f Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 29 Jun 2025 19:03:57 -0500 Subject: [PATCH] Replace docker volumes with bind mounts --- compose.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/compose.yml b/compose.yml index 94eeeac..ead0e15 100644 --- a/compose.yml +++ b/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: