forked from KoungQ/advanced-web-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (67 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
74 lines (67 loc) · 1.38 KB
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
version: '3.8'
services:
discovery:
build: ./discovery
container_name: discovery
ports:
- "8761:8761"
networks:
- msa-net
api-gateway:
build: ./api-gateway
container_name: api-gateway
ports:
- "8000:8000"
depends_on:
- discovery
networks:
- msa-net
test-service:
build: ./test-service
container_name: test-service
ports:
- "8081:8081"
depends_on:
- discovery
- kafka
networks:
- msa-net
consumer-service:
build: ./consumer-service
container_name: consumer
ports:
- "8082:8082"
depends_on:
- kafka
- discovery
networks:
- msa-net
zookeeper:
image: bitnami/zookeeper:latest
container_name: zookeeper
ports:
- "2181:2181"
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
networks:
- msa-net
kafka:
image: bitnami/kafka:latest
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CFG_PROCESS_ROLES: broker
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_KRAFT_MODE_ENABLED: no
KAFKA_CFG_BROKER_ID: 1
depends_on:
- zookeeper
networks:
- msa-net
networks:
msa-net: