-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (81 loc) · 1.78 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
version: "3"
services:
# databases
redis:
image: redis:6.2-alpine
container_name: redis
mongodb:
image: mongo:latest
container_name: mongodb
postgres:
image: postgres:latest
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
# airline services
american-airlines:
build: american-airlines
container_name: american-airlines
environment:
- SERVER_PORT=8081
- DATABASE_HOST=redis
- DATABASE_PORT=6379
depends_on:
- redis
cathay-pacific:
build: cathay-pacific
container_name: cathay-pacific
environment:
- SERVER_PORT=8082
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
depends_on:
- postgres
emirates:
build: emirates
container_name: emirates
environment:
- SERVER_PORT=8083
- DATABASE_NAME=emirates_flights
- DATABASE_HOST=mongodb
- DATABASE_PORT=27017
depends_on:
- mongodb
ryan-air:
build: ryan-air
container_name: ryan-air
environment:
- SERVER_PORT=8084
- DATABASE_NAME=ryanair_flights
- DATABASE_HOST=mongodb
- DATABASE_PORT=27017
depends_on:
- mongodb
# central
broker:
build: broker
container_name: broker
ports:
- "8080:8080"
environment:
- SERVER_PORT=8080
depends_on:
- american-airlines
- cathay-pacific
- emirates
- ryan-air
ui:
build:
context: ui
args:
- ENVIRONMENT=docker-compose
- BROKER_HOST=localhost
- BROKER_PORT=8080
container_name: ui
ports:
- "1337:80"
depends_on:
- broker