mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
32 lines
969 B
YAML
32 lines
969 B
YAML
|
version: '2.3'
|
||
|
|
||
|
services:
|
||
|
zookeeper:
|
||
|
extends:
|
||
|
file: zookeeper-service.yml
|
||
|
service: zookeeper
|
||
|
|
||
|
clickhouse1:
|
||
|
extends:
|
||
|
file: clickhouse-service.yml
|
||
|
service: clickhouse
|
||
|
hostname: clickhouse1
|
||
|
volumes:
|
||
|
- "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse1/database/:/var/lib/clickhouse/"
|
||
|
- "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse1/logs/:/var/log/clickhouse-server/"
|
||
|
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse1/config.d:/etc/clickhouse-server/config.d"
|
||
|
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse1/users.d:/etc/clickhouse-server/users.d"
|
||
|
depends_on:
|
||
|
zookeeper:
|
||
|
condition: service_healthy
|
||
|
|
||
|
# dummy service which does nothing, but allows to postpone
|
||
|
# 'docker-compose up -d' till all dependecies will go healthy
|
||
|
all_services_ready:
|
||
|
image: hello-world
|
||
|
depends_on:
|
||
|
clickhouse1:
|
||
|
condition: service_healthy
|
||
|
zookeeper:
|
||
|
condition: service_healthy
|