services:

  php:
    build: tests/docker
    depends_on:
      - clickhouse01
      - clickhouse02
      - zookeeper
    volumes:
      - ./:/src

  clickhouse01:
    image: yandex/clickhouse-server
    ports:
      - "18123:8123"
    depends_on:
      - zookeeper
    volumes:
      - ./tests/docker/clickhouse01:/etc/clickhouse-server

  clickhouse02:
    image: yandex/clickhouse-server
    ports:
      - "18124:8123"
    depends_on:
      - zookeeper
    volumes:
      - ./tests/docker/clickhouse02:/etc/clickhouse-server

  zookeeper:
    image: zookeeper:3.7
