machinegun-woody-api/compose.yaml
2022-05-24 19:02:10 +03:00

48 lines
1.1 KiB
YAML

services:
testrunner:
image: $DEV_IMAGE_TAG
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
depends_on:
- kafka1
- kafka2
- kafka3
working_dir: $PWD
command: /sbin/init
zookeeper:
image: docker.io/confluentinc/cp-zookeeper:$CONFLUENT_PLATFORM_VERSION
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka1: &kafka-broker
image: docker.io/confluentinc/cp-kafka:$CONFLUENT_PLATFORM_VERSION
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka1:9092
kafka2:
<<: *kafka-broker
environment:
KAFKA_BROKER_ID: 2
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka2:9092
kafka3:
<<: *kafka-broker
environment:
KAFKA_BROKER_ID: 3
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka3:9092
volumes:
schemas:
external: false