-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
146 lines (137 loc) · 3.35 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: '3'
services:
eureka-server:
container_name: eureka-server
build: ./service-discovery
ports:
- "8761:8761"
environment:
- SPRING_PROFILES_ACTIVE=dev
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
api-gateway:
container_name: api-gateway
build: ./api-gateway
depends_on:
- eureka-server
ports:
- "8080:8080"
environment:
EUREKA_SERVER: http://eureka-server:8761/eureka
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
swagger-ui:
image: swaggerapi/swagger-ui
container_name: "swagger-ui"
depends_on:
- api-gateway
ports:
- "8088:8080"
environment:
URLS:
kafka:
container_name: kafka
image: 'bitnami/kafka:latest'
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
ports:
- 9094:9094
redpanda-console:
container_name: redpanda-kanban
image: docker.redpanda.com/vectorized/console:latest
restart: on-failure
entrypoint: /bin/sh
command: -c "echo \"$$CONSOLE_CONFIG_FILE\" > /tmp/config.yml; /app/console"
ports:
- 8084:8080
environment:
CONFIG_FILEPATH: /tmp/config.yml
CONSOLE_CONFIG_FILE: |
kafka:
brokers: ["kafka:9092"]
depends_on:
- kafka
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
chat-db:
container_name: chat-db
image: mongo:latest
restart: always
environment:
MONGO_INITDB_DATABASE: chat-db
ports:
- "27017:27017"
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
auth-service:
container_name: auth-service
build: ./auth-service
depends_on:
- chat-db
- kafka
- eureka-server
ports:
- "8081:8081"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EUREKA_SERVER: http://eureka-server:8761/eureka
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
chat-service:
container_name: chat-service
build: ./chat-service
depends_on:
- chat-db
- kafka
- eureka-server
ports:
- "8082:8082"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
MONGO_DB_URI: mongodb://chat-db:27017/chat-db
JWK_SET_URI: http://api-gateway:8080
EUREKA_SERVER: http://eureka-server:8761/eureka
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
notification-service:
container_name: notification-service
build: ./notification-service
depends_on:
- kafka
ports:
- "8083:8083"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
DB_HOST: notification-db
DB_PORT: 3306
DB_Name: notification
JWK_SET_URI: http://kanban-app:8080
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"