-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
118 lines (109 loc) · 2.25 KB
/
docker-compose.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '3.7'
services:
# Our kafka stuff... Stole most of this config from bitnami
zookeeper.local:
image: docker.io/bitnami/zookeeper:3
networks:
- envoymesh
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka.local:
#image: docker.io/bitnami/kafka:2
build:
context: ./kafka
dockerfile: Dockerfile
networks:
- envoymesh
ports:
- "9092:9092"
expose:
- "9092"
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper.local:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper.local
producer.local:
build:
context: ./nodejs-kafka-producer
dockerfile: Dockerfile
networks:
- envoymesh
# ports:
# - "8000:8000"
# expose:
# - "8000"
depends_on:
- kafka.local
ws.local:
build:
context: ./nodejs-websocket-server
dockerfile: Dockerfile
networks:
- envoymesh
ports:
- "8000:8000"
expose:
- "8000"
depends_on:
- producer.local
graphql.local:
build:
context: ./nodejs-graphql-server
dockerfile: Dockerfile
networks:
- envoymesh
ports:
- "4000:4000"
expose:
- "4000"
grpc.local:
build:
context: ./java-grpc-server
dockerfile: Dockerfile
networks:
- envoymesh
ports:
- "9090:9090"
expose:
- "9090"
envoy.local:
image: envoyproxy/envoy:v1.17-latest
volumes:
- ./envoy.yaml:/etc/envoy/envoy.yaml
networks:
- envoymesh
ports:
- "8080:8080"
expose:
- "8080"
envoy_adapter.local:
build:
context: ./envoy_adapter
dockerfile: Dockerfile
volumes:
- ./config.yaml:/config.yaml
environment:
DEBUG: "debug"
networks:
- envoymesh
ports:
- "5000:5000"
- "5001:5001"
expose:
- "5000"
- "5001"
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local
networks:
envoymesh: {}