save CH logs into a named volume

This commit is contained in:
ruslandoga 2024-04-16 00:35:54 +08:00 committed by GitHub
parent 4ebc0f6631
commit 3ea11aad26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,7 @@ services:
restart: always
volumes:
- event-data:/var/lib/clickhouse
- event-logs:/var/log/clickhouse-server
- ./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:
@ -44,3 +45,6 @@ volumes:
driver: local
event-data:
driver: local
event-logs:
driver: local