version: '2' services: test: depends_on: - kafka build: context: . network_mode: service:kafka environment: - "DEFAULT_TIMEOUT=${DEFAULT_TIMEOUT}" command: rspec volumes: - ./coverage:/opt/phobos/coverage zookeeper: image: wurstmeister/zookeeper:latest ports: - 2181:2181 kafka: depends_on: - zookeeper image: wurstmeister/kafka:0.11.0.1 ports: - 9092:9092 environment: KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_BROKER_ID: 0