-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·180 lines (166 loc) · 4.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
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
version: "3.8"
volumes:
rabbitmq_data:
services:
###################################
#Simple Microservices
###################################
doctor:
hostname: 'doctor'
build:
context: ./doctor
dockerfile: Dockerfile
image: borenlew/doctor:g1t6_v2
restart: always
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/g1t6_doctor
PYTHONUNBUFFERED: 1
ports:
- "5200:5200"
# hostname: 'doctor'
appt:
hostname: 'appt'
build:
context: ./appt
dockerfile: Dockerfile
image: jthm/appt:g1t6_v3
restart: always
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/g1t6_appt
PYTHONUNBUFFERED: 1
ports:
- "5100:5100"
# hostname: 'appt'
prescription:
hostname: 'prescription'
build:
context: ./prescription
dockerfile: Dockerfile
image: jthm/prescription:g1t6
restart: always
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/g1t6_prescription
PYTHONUNBUFFERED: 1
ports:
- "5300:5300"
patient:
hostname: 'patient'
build:
context: ./patient
dockerfile: Dockerfile
image: jthm/patient:g1t6
restart: always
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/g1t6_patient
PYTHONUNBUFFERED: 1
ports:
- "5500:5500"
####################################
# Complex Microservices
####################################
bookingappt:
hostname: 'bookingappt'
build:
context: ./bookingappt
dockerfile: Dockerfile
image: borenlew/bookingappt:g1t6_v2
restart: always
depends_on:
- doctor
- patient
- prescription
- appt
environment:
doctor_URL: http://doctor:5200/doctor
appt_URL: http://appt:5100/appt/
PYTHONUNBUFFERED: 1
ports:
- "5400:5400"
consultationinfo:
hostname: 'consultationinfo'
build:
context: ./consultationinfo
dockerfile: Dockerfile
image: jthm/consultationinfo:g1t6
restart: always
depends_on:
- doctor
- patient
- prescription
- appt
environment:
patient_URL: http://patient:5500/patient
prescription_URL: http://prescription:5300/prescription
doctAppt_URL: http://appt:5100/doctor/appt/
PYTHONUNBUFFERED: 1
ports:
- "5600:5600"
patientlogin:
hostname: 'patientlogin'
build:
context: ./finish
dockerfile: patientlogin.Dockerfile
image: borenlew/patientlogin:g1t6_v2
restart: always
ports:
- "5800:5800"
depends_on:
- rabbitmq
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/g1t6_patient
PYTHONUNBUFFERED: 1
rabbit_host: rabbitmq
rabbit_port: 5672
PYTHONUNBUFFERED: 1
employeelogin:
hostname: 'employeelogin'
build:
context: ./finish
dockerfile: emplogin.Dockerfile
image: borenlew/employeelogin:g1t6_v2
restart: always
environment:
dbURL: mysql+mysqlconnector://[email protected]:3306/g1t6_employee
PYTHONUNBUFFERED: 1
ports:
- "5900:5900"
####################################
# RabbitMQ: The messaging broker
####################################
rabbitmq:
image: rabbitmq:3-management
hostname: esd-rabbit
restart: always
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
#################################################
# Activity Log: The Activity Log microservice
#################################################
login_log:
build:
context: ./login_log
dockerfile: Dockerfile
image: borenlew/login_log:g1t6_v2
restart: always
depends_on:
- rabbitmq
environment:
rabbit_host: rabbitmq
rabbit_port: 5672
PYTHONUNBUFFERED: 1
singpass:
build:
context: ./singpass-verify/sg-verify-demo-app
dockerfile: Dockerfile
image: borenlew/singpass:g1t6_v2
volumes:
- ./singpass-verify/sg-verify-demo-app:/usr/src/app
restart: always
ports:
- "3001:3001"
- "3002:3002"
- "3003:3003"
- "3004:3004"