Customize docker compose config

This commit is contained in:
BBaoVanC 2022-04-08 01:27:19 -05:00
parent 746c7d0e90
commit f9902dbce7
2 changed files with 4 additions and 14 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
plausible-conf.env
data/

View File

@ -1,15 +1,11 @@
version: "3.3"
services:
mail:
image: bytemark/smtp
restart: always
plausible_db:
# supported versions are 12, 13, and 14
image: postgres:14-alpine
restart: always
volumes:
- db-data:/var/lib/postgresql/data
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
@ -17,7 +13,7 @@ services:
image: clickhouse/clickhouse-server:23.3.7.5-alpine
restart: always
volumes:
- event-data:/var/lib/clickhouse
- ./data/clickhouse:/var/lib/clickhouse
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
- ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
ulimits:
@ -32,14 +28,7 @@ services:
depends_on:
- plausible_db
- plausible_events_db
- mail
ports:
- 8000:8000
- 127.0.0.1:84:8000
env_file:
- plausible-conf.env
volumes:
db-data:
driver: local
event-data:
driver: local