feat(infra): add clickhouse data persistence volume
Add persistent volume for ClickHouse to preserve data across container restarts. The volume `clickhouse-data` is mounted to `/var/lib/clickhouse`, ensuring data remains when containers are recreated.
This commit is contained in:
+2
-1
@@ -20,6 +20,7 @@ services:
|
||||
networks:
|
||||
- cs_dwh
|
||||
volumes:
|
||||
- clickhouse-data:/var/lib/clickhouse
|
||||
- ./configs/default_user.xml:/etc/clickhouse-server/users.d/default_user.xml
|
||||
# - ./configs/z_config.xml:/etc/clickhouse-server/config.d/z_config.xml
|
||||
# - ./configs/macros_ch1.xml:/etc/clickhouse-server/config.d/macros.xml
|
||||
@@ -235,9 +236,9 @@ networks:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
clickhouse-data:
|
||||
grafana_lib:
|
||||
kafka-data:
|
||||
pgmeta:
|
||||
superset_data:
|
||||
superset_config:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user