-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
44 lines (42 loc) · 877 Bytes
/
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
version: "2"
services:
zookeeper:
image: "bitnami/zookeeper:3"
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: "bitnami/kafka:2"
ports:
- "9092:9092"
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
go-graphql-subscription-example:
build: .
image: "ccamel/go-graphql-subscription-example"
working_dir: /root/
entrypoint:
[
"./go-graphql-subscription-example",
"--brokers",
"kafka:9092",
"--topics",
"${TOPICS}",
]
ports:
- "${PORT}:8000"
depends_on:
- kafka
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local