forked from flipp-oss/deimos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
71 lines (65 loc) · 1.84 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.6'
services:
mysql:
image: mysql:5.7
expose:
- 3306
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=test
- TZ=America/Toronto
postgres:
image: postgres:11.1
expose:
- 5432
environment:
POSTGRES_PASSWORD: root
test:
volumes:
- .:/var/app
depends_on:
- kafka-broker
- mysql
- postgres
build: .
environment:
- "DEFAULT_TIMEOUT=${DEFAULT_TIMEOUT}"
- MYSQL_HOST=mysql
- PG_HOST=postgres
- SCHEMA_REGISTRY=http://schema-registry:8081
- KAFKA_SEED_BROKER=kafka-broker:9092
command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 1m rspec
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- 2181:2181
schema-registry:
image: confluentinc/cp-schema-registry
hostname: schema-registry
depends_on:
- zookeeper
- kafka-broker
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
kafka-broker:
image: confluentinc/cp-enterprise-kafka
hostname: kafka-broker
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka-broker:9092'
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka-broker:9092
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'