mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
zookeeper:
|
|
image: zookeeper
|
|
networks:
|
|
- 001_miltiple_disks
|
|
|
|
ch1:
|
|
image: yandex/clickhouse-server
|
|
hostname: ch1
|
|
depends_on:
|
|
- "zookeeper"
|
|
networks:
|
|
- 001_miltiple_disks
|
|
tmpfs:
|
|
- /jbod1:size=40M
|
|
- /jbod2:size=40M
|
|
- /external:size=200M
|
|
volumes:
|
|
- ./config/conf.d:/etc/clickhouse-server/conf.d
|
|
- ./config/ch1.metrika.xml:/etc/metrika.xml
|
|
# TODO: hacky, but "cheap" - don't need to rebuild docker image.
|
|
# for CI & tests automation should be done another way, not relying on build path
|
|
- ../../../../build/dbms/programs/clickhouse:/usr/bin/clickhouse
|
|
- ./test_setup:/test_setup
|
|
entrypoint: ['/test_setup/entrypoint.sh']
|
|
|
|
|
|
ch2:
|
|
image: yandex/clickhouse-server
|
|
hostname: ch2
|
|
depends_on:
|
|
- "zookeeper"
|
|
networks:
|
|
- 001_miltiple_disks
|
|
tmpfs:
|
|
- /jbod1:size=40M
|
|
- /jbod2:size=40M
|
|
- /external:size=200M
|
|
volumes:
|
|
- ./config/conf.d:/etc/clickhouse-server/conf.d
|
|
- ./config/ch2.metrika.xml:/etc/metrika.xml
|
|
# TODO: hacky, but "cheap" - don't need to rebuild docker image.
|
|
# for CI & tests automation should be done another way, not relying on build path
|
|
- ../../../../build/dbms/programs/clickhouse:/usr/bin/clickhouse
|
|
- ./test_setup:/test_setup
|
|
entrypoint: ['/test_setup/entrypoint.sh']
|
|
|
|
|
|
networks:
|
|
001_miltiple_disks:
|