-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
149 lines (136 loc) · 3.33 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
version: '3.5'
services:
discovery:
image: hrms/discovery-service
container_name: discovery-service
build:
context: ./discovery-service
dockerfile: Dockerfile
ports:
- "8761:8761"
gateway:
image: hrms/gateway-service
container_name: gateway-service
build:
context: ./gateway-service
dockerfile: Dockerfile
ports:
- "8765:8765"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
zipkin-service:
image: hrms/zipkin-service
container_name: zipkin-service
build:
context: ./zipkin-service
dockerfile: Dockerfile
ports:
- "9411:9411"
employee-service:
image: hrms/employee-service
container_name: employee-service
build:
context: ./employee-service
dockerfile: Dockerfile
ports:
- "1111:8082"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
position-service:
image: hrms/position-service
container_name: position-service
build:
context: ./position-service
dockerfile: Dockerfile
ports:
- "3333:8080"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
recruitement-service:
image: hrms/recruitement-service
container_name: recruitement-service
build:
context: ./recruitement-service
dockerfile: Dockerfile
ports:
- "4444:8080"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
account-service:
image: piomin/account-service
container_name: account-service
build:
context: ./account-service
dockerfile: Dockerfile
ports:
- "8541:8541"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
customer-service:
image: piomin/customer-service
container_name: customer-service
build:
context: ./customer-service
dockerfile: Dockerfile
ports:
- "8542:8542"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
conge-service:
image: hrms/conge-service
container_name: conge-service
build:
context: ./conge-service
dockerfile: Dockerfile
ports:
- "5555:8080"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
contrat-service:
image: hrms/contrat-service
container_name: contrat-service
build:
context: ./contrat-service
dockerfile: Dockerfile
ports:
- "2222:8080"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
mongo:
container_name: mongo-db
image: "mongo:5-focal"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data_container:/data/db
hostname: mongo
auth-service:
image: hrms/auth-service
container_name: auth-service
ports:
- "6666:3000"
hostname: auth
depends_on:
- "mongo"
volumes:
mongodb_data_container: