Use volumes for Postgres and ClickHouse.

This commit is contained in:
2022-12-26 18:10:12 +01:00
parent 12de9c06be
commit 46b4044018
3 changed files with 11 additions and 130 deletions

View File

@@ -1,14 +1,16 @@
version: '3'
volumes:
clickhouse_data:
services:
clickhouse:
image: clickhouse/clickhouse-server:22-alpine
container_name: clickhouse
restart: always
restart: unless-stopped
ports:
- 8123:8123
- 9000:9000
volumes:
- /home/marvin/docker/clickhouse/data:/var/lib/clickhouse
# - /home/marvin/docker/clickhouse/config.xml:/etc/clickhouse-server/config.xml
- /home/marvin/docker/clickhouse/users.xml:/etc/clickhouse-server/users.xml
- clickhouse_data:/var/lib/clickhouse
# - /home/marvin/docker/clickhouse/users.xml:/etc/clickhouse-server/users.xml