2020-07-21 17:51:02 +00:00
|
|
|
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/"
|
2020-07-21 18:40:43 +00:00
|
|
|
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse1/config.d/macros.xml:/etc/clickhouse-server/config.d/macros.xml"
|
2020-07-21 17:51:02 +00:00
|
|
|
depends_on:
|
|
|
|
zookeeper:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
clickhouse2:
|
|
|
|
extends:
|
|
|
|
file: clickhouse-service.yml
|
|
|
|
service: clickhouse
|
|
|
|
hostname: clickhouse2
|
|
|
|
volumes:
|
|
|
|
- "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse2/database/:/var/lib/clickhouse/"
|
|
|
|
- "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse2/logs/:/var/log/clickhouse-server/"
|
2020-07-21 18:40:43 +00:00
|
|
|
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse2/config.d/macros.xml:/etc/clickhouse-server/config.d/macros.xml"
|
2020-07-21 17:51:02 +00:00
|
|
|
depends_on:
|
|
|
|
zookeeper:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
clickhouse3:
|
|
|
|
extends:
|
|
|
|
file: clickhouse-service.yml
|
|
|
|
service: clickhouse
|
|
|
|
hostname: clickhouse3
|
|
|
|
volumes:
|
|
|
|
- "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse3/database/:/var/lib/clickhouse/"
|
|
|
|
- "${CLICKHOUSE_TESTS_DIR}/_instances/clickhouse3/logs/:/var/log/clickhouse-server/"
|
2020-07-21 18:40:43 +00:00
|
|
|
- "${CLICKHOUSE_TESTS_DIR}/configs/clickhouse3/config.d/macros.xml:/etc/clickhouse-server/config.d/macros.xml"
|
2020-07-21 17:51:02 +00:00
|
|
|
depends_on:
|
|
|
|
zookeeper:
|
|
|
|
condition: service_healthy
|
|
|
|
|
2020-10-15 20:23:49 +00:00
|
|
|
# dummy service which does nothing, but allows to postpone
|
2020-07-21 17:51:02 +00:00
|
|
|
# 'docker-compose up -d' till all dependecies will go healthy
|
|
|
|
all_services_ready:
|
|
|
|
image: hello-world
|
|
|
|
depends_on:
|
|
|
|
clickhouse1:
|
|
|
|
condition: service_healthy
|
|
|
|
clickhouse2:
|
|
|
|
condition: service_healthy
|
|
|
|
clickhouse3:
|
|
|
|
condition: service_healthy
|
|
|
|
zookeeper:
|
2021-02-20 18:59:45 +00:00
|
|
|
condition: service_healthy
|