-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
211 lines (190 loc) · 5.49 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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
version: "3.8"
services:
user_db:
image: mongo:5.0.2
restart: always
env_file: ./.env
environment:
- MONGO_INITDB_ROOT_USERNAME=$USER_DB_USER
- MONGO_INITDB_ROOT_PASSWORD=$USER_DB_PASSWORD
ports:
- $USER_DB_LOCAL_PORT:$USER_DB_DOCKER_PORT
volumes:
- user_db:/data/db
destination_db:
image: mongo:5.0.2
restart: always
env_file: ./.env
environment:
- MONGO_INITDB_ROOT_USERNAME=$DESTINATION_DB_USER
- MONGO_INITDB_ROOT_PASSWORD=$DESTINATION_DB_PASSWORD
ports:
- $DESTINATION_DB_LOCAL_PORT:$DESTINATION_DB_DOCKER_PORT
volumes:
- destination_db:/data/db
user_db_adapter:
depends_on:
- user_db
build: ./adapter_services/user_db_adapter
restart: always
env_file: ./.env
ports:
- $USER_DB_ADAPTER_LOCAL_PORT:$USER_DB_ADAPTER_DOCKER_PORT
environment:
- DB_HOST=user_db
- DB_USER=$USER_DB_USER
- DB_PASSWORD=$USER_DB_PASSWORD
- DB_NAME=$USER_DB_DATABASE
- DB_PORT=$USER_DB_DOCKER_PORT
stdin_open: true
tty: true
destination_db_adapter:
depends_on:
- destination_db
build: ./adapter_services/destination_db_adapter
restart: always
env_file: ./.env
ports:
- $DESTINATION_DB_ADAPTER_LOCAL_PORT:$DESTINATION_DB_ADAPTER_DOCKER_PORT
environment:
- DB_HOST=destination_db
- DB_USER=$DESTINATION_DB_USER
- DB_PASSWORD=$DESTINATION_DB_PASSWORD
- DB_NAME=$DESTINATION_DB_DATABASE
- DB_PORT=$DESTINATION_DB_DOCKER_PORT
stdin_open: true
tty: true
forecast_api_adapter:
build: ./adapter_services/forecast_api_adapter
restart: always
env_file: ./.env
ports:
- $FORECAST_API_ADAPTER_LOCAL_PORT:$FORECAST_API_ADAPTER_DOCKER_PORT
environment:
- API_KEY=$FORECAST_API_KEY
- NODE_ENV=production
stdin_open: true
tty: true
geocoding_api_adapter:
build: ./adapter_services/geocoding_api_adapter
restart: always
env_file: ./.env
ports:
- $GEOCODING_API_ADAPTER_LOCAL_PORT:$GEOCODING_API_ADAPTER_DOCKER_PORT
stdin_open: true
tty: true
crowd_api_adapter:
build: ./adapter_services/crowd_api_adapter
restart: always
env_file: ./.env
ports:
- $CROWD_API_ADAPTER_LOCAL_PORT:$CROWD_API_ADAPTER_DOCKER_PORT
environment:
- API_KEY=$TOMTOM_API_KEY
stdin_open: true
tty: true
range_api_adapter:
build: ./adapter_services/range_api_adapter
restart: always
env_file: ./.env
ports:
- $RANGE_API_ADAPTER_LOCAL_PORT:$RANGE_API_ADAPTER_DOCKER_PORT
environment:
- API_KEY=$TOMTOM_API_KEY
stdin_open: true
tty: true
emailcheck_api_adapter:
build: ./adapter_services/emailcheck_api_adapter
restart: always
env_file: ./.env
ports:
- $EMAILCHECK_API_ADAPTER_LOCAL_PORT:$EMAILCHECK_API_ADAPTER_DOCKER_PORT
stdin_open: true
tty: true
ip_api_adapter:
build: ./adapter_services/ip_api_adapter
restart: always
env_file: ./.env
ports:
- $IP_API_ADAPTER_LOCAL_PORT:$IP_API_ADAPTER_DOCKER_PORT
stdin_open: true
tty: true
air_pollution_api_adapter:
build: ./adapter_services/air_pollution_api_adapter
restart: always
env_file: ./.env
ports:
- $AIR_POLLUTION_API_ADAPTER_LOCAL_PORT:$AIR_POLLUTION_API_ADAPTER_DOCKER_PORT
stdin_open: true
tty: true
coordinates_service:
build: ./business_logic_services/coordinates_service
restart: always
env_file: ./.env
ports:
- $COORDINATES_SERVICE_LOCAL_PORT:$COORDINATES_SERVICE_DOCKER_PORT
environment:
- COORDINATES_SERVICE_DOCKER_PORT=$COORDINATES_SERVICE_DOCKER_PORT
stdin_open: true
tty: true
reachable_destinations_service:
build: ./business_logic_services/reachable_destinations_service
restart: always
env_file: ./.env
ports:
- $REACHABLE_DESTINATIONS_SERVICE_LOCAL_PORT:$REACHABLE_DESTINATIONS_SERVICE_DOCKER_PORT
environment:
- REACHABLE_DESTINATIONS_SERVICE_DOCKER_PORT=$REACHABLE_DESTINATIONS_SERVICE_DOCKER_PORT
stdin_open: true
tty: true
coordinates_rating_service:
build: ./business_logic_services/coordinates_rating_service
restart: always
env_file: ./.env
ports:
- $COORDINATES_RATING_SERVICE_LOCAL_PORT:$COORDINATES_RATING_SERVICE_DOCKER_PORT
stdin_open: true
tty: true
best_destinations_service:
build: ./process_centric_services/best_destinations_service
restart: always
env_file: ./.env
ports:
- $BEST_DESTINATIONS_SERVICE_LOCAL_PORT:$BEST_DESTINATIONS_SERVICE_DOCKER_PORT
stdin_open: true
tty: true
user_login_service:
build: ./process_centric_services/user_login_service
restart: always
env_file: ./.env
ports:
- $USER_LOGIN_LOCAL_PORT:$USER_LOGIN_DOCKER_PORT
stdin_open: true
tty: true
user_registration_service:
build: ./process_centric_services/user_registration_service
restart: always
env_file: ./.env
ports:
- $USER_REGISTRATION_LOCAL_PORT:$USER_REGISTRATION_DOCKER_PORT
stdin_open: true
tty: true
valid_email_service:
build: ./business_logic_services/valid_email_service
restart: always
env_file: ./.env
ports:
- $VALID_EMAIL_SERVICE_LOCAL_PORT:$VALID_EMAIL_SERVICE_DOCKER_PORT
stdin_open: true
tty: true
frontend:
build: ./frontend
restart: always
env_file: ./.env
ports:
- $FRONTEND_LOCAL_PORT:$FRONTEND_DOCKER_PORT
stdin_open: true
tty: true
volumes:
user_db:
destination_db: