-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
184 lines (173 loc) · 4.09 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
version: "3.0"
services:
keycloak:
image: quay.io/keycloak/keycloak:21.1.0
container_name: keycloak
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
ports:
- "8080:8080"
volumes:
- /home/dimitris/Desktop/ECE/10o/SaaS/SaaS23-17/keycloak-authenticator/realm-export.json:/opt/keycloak/data/import/realm.json
command: start-dev --import-realm
networks:
saas_network:
ipv4_address: 172.18.0.20
zookeeper:
image: confluentinc/cp-zookeeper:7.3.2
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
restart: unless-stopped
networks:
saas_network:
ipv4_address: 172.18.0.10
broker:
image: confluentinc/cp-kafka:7.3.2
container_name: broker
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://172.18.0.11:9092,PLAINTEXT_INTERNAL://broker:29092
KAFKA_CREATE_TOPICS: user-data:1:1, credit-data:1:1, chart-data:1:1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
restart: unless-stopped
networks:
saas_network:
ipv4_address: 172.18.0.11
downloader:
build:
context: ./downloader
args:
- APP_PORT=6020
container_name: downloader
ports:
- "6020:6020"
depends_on:
- broker
- zookeeper
- keycloak
env_file:
- ./downloader/.env.app
- ./downloader/.env.downloader
restart: unless-stopped
networks:
- saas_network
simple-plot:
build:
context: ./creator
args:
- APP_PORT=6013
container_name: simple-plot
ports:
- "6013:6013"
depends_on:
- broker
- zookeeper
- keycloak
env_file:
- ./creator/.env.app
- ./creator/.env.simple-plot
restart: unless-stopped
networks:
- saas_network
user-info-manager:
build:
context: ./user-info-manager
args:
- APP_PORT=3010
container_name: user-info-manager
ports:
- "3010:3010"
env_file:
- ./user-info-manager/.env
depends_on:
- broker
- zookeeper
- keycloak
restart: unless-stopped
networks:
- saas_network
chart-info-manager:
build:
context: ./chart-info-manager
args:
- APP_PORT=3000
container_name: chart-info-manager
ports:
- "3000:3000"
env_file:
- ./chart-info-manager/.env
depends_on:
- broker
- zookeeper
- keycloak
restart: unless-stopped
networks:
- saas_network
credit-manager:
build:
context: ./credit-manager
args:
- APP_PORT=3030
container_name: credit-manager
ports:
- "3030:3030"
env_file:
- ./credit-manager/.env
depends_on:
- broker
- zookeeper
- keycloak
restart: unless-stopped
networks:
- saas_network
credit-validator:
build:
context: ./credit-validator
args:
- APP_PORT=3031
container_name: credit-validator
ports:
- "3031:3031"
env_file:
- ./credit-validator/.env
depends_on:
- broker
- zookeeper
- keycloak
restart: unless-stopped
networks:
- saas_network
front-end:
build:
context: ./front-end
args:
- APP_PORT=4007
container_name: front-end
ports:
- "4007:4007"
env_file:
- ./front-end/.env
depends_on:
- broker
- zookeeper
- keycloak
restart: unless-stopped
networks:
- saas_network
networks:
saas_network:
ipam:
driver: default
config:
- subnet: 172.18.0.0/16