-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
163 lines (162 loc) · 3.66 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
#version: '3.7'
services:
discovery-service:
build:
context: discovery-service
dockerfile: Dockerfile
args:
- APP_NAME=discovery-service
- APP_VERSION=1.0.0
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
expose:
- 8761
ports:
- 8761:8761
depends_on:
- rabbitmq
# network_mode: "host"
networks:
- eprocure-network
configurations-service:
build:
context: configurations-service
dockerfile: Dockerfile
args:
- APP_NAME=configurations-service
- APP_VERSION=1.0.0
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- JAVA_OPTS=
-DEUREKA_SERVER=http://discovery-service:8761/eureka
restart: on-failure
expose:
- 8888
ports:
- 8888:8888
depends_on:
- discovery-service
- rabbitmq
networks:
- eprocure-network
gateway-service:
build:
context: gateway-service
dockerfile: Dockerfile
args:
- APP_NAME=gateway-service
- APP_VERSION=1.0.0
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- JAVA_OPTS=
-DEUREKA_SERVER=http://discovery-service:8761/eureka
-DCONFIG_SERVER=http://configurations-service:8888
restart: on-failure
expose:
- 8081
ports:
- 8081:8081
depends_on:
- discovery-service
- configurations-service
- rabbitmq
networks:
- eprocure-network
setups-service:
build:
context: setups-service
dockerfile: Dockerfile
args:
- APP_NAME=setups-service
- APP_VERSION=1.0.0
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- JAVA_OPTS=
-DEUREKA_SERVER=http://discovery-service:8761/eureka
restart: on-failure
expose:
- 8084
ports:
- 8084:8084
depends_on:
- discovery-service
- configurations-service
- gateway-service
- rabbitmq
- mysql
networks:
- eprocure-network
workflow-service:
build:
context: workflow-service
dockerfile: Dockerfile
args:
- APP_NAME=workflow-service
- APP_VERSION=1.0.0
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- JAVA_OPTS=
-DEUREKA_SERVER=http://discovery-service:8761/eureka
-DCONFIG_SERVER=http://configurations-service:8888
restart: on-failure
expose:
- 8083
ports:
- 8083:8083
depends_on:
- discovery-service
- gateway-service
- configurations-service
- rabbitmq
- mysql
networks:
- eprocure-network
employees-service:
build:
context: employees-service
dockerfile: Dockerfile
args:
- APP_NAME=employees-service
- APP_VERSION=1.0.0
environment:
- SPRING_RABBITMQ_HOST=rabbitmq
- JAVA_OPTS=
-DEUREKA_SERVER=http://discovery-service:8761/eureka
-DCONFIG_SERVER=http://configurations-service:8888
restart: on-failure
expose:
- 8085
ports:
- 8085:8085
depends_on:
- discovery-service
- configurations-service
- gateway-service
- setups-service
- workflow-service
- rabbitmq
- mysql
networks:
- eprocure-network
rabbitmq:
image: rabbitmq:4.1-rc
container_name: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
networks:
- eprocure-network
mysql:
image: mysql:8.4
container_name: mysql
ports:
- 3307:3307
environment:
MYSQL_DATABASE: e_procure_db
MYSQL_ROOT_PASSWORD: Root123#@!
MYSQL_USER: dev
MYSQL_PASSWORD: Dev123#@!
networks:
eprocure-network:
driver: bridge