2019-05-13 13:41:47 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
zookeeper:
|
|
|
|
image: zookeeper
|
|
|
|
networks:
|
2019-05-15 17:09:03 +00:00
|
|
|
- 001_miltiple_disks
|
2019-05-13 13:41:47 +00:00
|
|
|
|
|
|
|
ch1:
|
|
|
|
image: yandex/clickhouse-server
|
|
|
|
hostname: ch1
|
|
|
|
depends_on:
|
|
|
|
- "zookeeper"
|
|
|
|
networks:
|
2019-05-15 17:09:03 +00:00
|
|
|
- 001_miltiple_disks
|
2019-05-13 13:41:47 +00:00
|
|
|
tmpfs:
|
|
|
|
- /jbod1:size=40M
|
|
|
|
- /jbod2:size=40M
|
|
|
|
- /external:size=200M
|
|
|
|
volumes:
|
2019-05-15 17:09:03 +00:00
|
|
|
- ./config/conf.d:/etc/clickhouse-server/conf.d
|
|
|
|
- ./config/ch1.metrika.xml:/etc/metrika.xml
|
2019-05-13 13:41:47 +00:00
|
|
|
# TODO: hacky, but "cheap" - don't need to rebuild docker image.
|
2019-05-15 17:09:03 +00:00
|
|
|
# for CI & tests automation should be done another way, not relying on build path
|
2019-05-13 13:41:47 +00:00
|
|
|
- ../../../../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:
|
2019-05-15 17:09:03 +00:00
|
|
|
- 001_miltiple_disks
|
2019-05-13 13:41:47 +00:00
|
|
|
tmpfs:
|
|
|
|
- /jbod1:size=40M
|
|
|
|
- /jbod2:size=40M
|
|
|
|
- /external:size=200M
|
|
|
|
volumes:
|
2019-05-15 17:09:03 +00:00
|
|
|
- ./config/conf.d:/etc/clickhouse-server/conf.d
|
|
|
|
- ./config/ch2.metrika.xml:/etc/metrika.xml
|
2019-05-13 13:41:47 +00:00
|
|
|
# TODO: hacky, but "cheap" - don't need to rebuild docker image.
|
2019-05-15 17:09:03 +00:00
|
|
|
# for CI & tests automation should be done another way, not relying on build path
|
2019-05-13 13:41:47 +00:00
|
|
|
- ../../../../build/dbms/programs/clickhouse:/usr/bin/clickhouse
|
|
|
|
- ./test_setup:/test_setup
|
|
|
|
entrypoint: ['/test_setup/entrypoint.sh']
|
2019-05-15 17:09:03 +00:00
|
|
|
|
2019-05-13 13:41:47 +00:00
|
|
|
|
|
|
|
networks:
|
2019-05-15 17:09:03 +00:00
|
|
|
001_miltiple_disks:
|