feat: Fixes networks that services are attached to.

This commit is contained in:
2025-04-16 10:42:17 -04:00
parent 7467a9f86a
commit b0fde6cc00

View File

@@ -2,13 +2,12 @@ services:
plausible_db:
image: postgres:16-alpine
restart: unless-stopped
user: 1000:1000
networks:
- backend
volumes:
- ${DB_MNT}:/var/lib/postgresql/data
- /etc/passwd:/etc/passwd:ro
env_file: .env
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
start_period: 1m
@@ -16,6 +15,8 @@ services:
plausible_events_db:
image: clickhouse/clickhouse-server:24.12-alpine
restart: unless-stopped
networks:
- backend
volumes:
- event-data:/var/lib/clickhouse
- event-logs:/var/log/clickhouse-server
@@ -57,6 +58,9 @@ services:
hard: 65535
ports:
- 127.0.0.1:${HTTP_PORT}:${HTTP_PORT}
networks:
- backend
- proxy
environment:
- TMPDIR=/var/lib/plausible/tmp
# required: https://github.com/plausible/community-edition/wiki/configuration#required
@@ -97,7 +101,14 @@ services:
- MANDRILL_API_KEY
- SENDGRID_API_KEY
networks:
backend:
external: true
proxy:
external: true
volumes:
db-data:
event-data:
event-logs:
plausible-data: