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