-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
133 lines (119 loc) · 3.55 KB
/
docker-compose.yaml
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
version: "3"
services:
mysql:
image: mysql:latest
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./dolphindb:/docker-entrypoint-initdb.d
restart: always
mongo:
image: mongo:5.0
container_name: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
ports:
- "27017:27017"
volumes:
- ./mongo/db:/data/db
- ./mongo/dev.archive:/Databases/dev.archive
- ./mongo/production:/Databases/production
restart: unless-stopped
mongo-express:
image: mongo-express
container_name: mexpress
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
- ME_CONFIG_MONGODB_URL=mongodb://root:password@mongo:27017/?authSource=admin
- ME_CONFIG_BASICAUTH_USERNAME=mexpress
- ME_CONFIG_BASICAUTH_PASSWORD=mexpress
links:
- mongo
restart: unless-stopped
ports:
- "8081:8081"
eureka-server:
build: ./registry/
image: registry-image
ports:
- 8888:8888
gateway-service:
build: ./gateway/
image: gateway-image
depends_on:
- eureka-server
ports:
- 7778:7778
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
ms-auth-service:
build: ./ms_auth_admin/
image: ms-auth-image
depends_on:
- eureka-server
- gateway-service
- mysql
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/users
spring.datasource.password: password
restart: on-failure
ms-demande-service:
build: ./ms-demandeV3/
image: ms-demande-image
depends_on:
- eureka-server
- gateway-service
- mysql
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/demandes
spring.datasource.password: password
restart: on-failure
ms-gestion-document-service:
build: ./ms-gestion-document-v2/
image: ms-gestion-document-image
depends_on:
- eureka-server
- gateway-service
- mongo
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.data.mongodb.host: "mongo"
spring.data.mongodb.port: 27017
spring.data.mongodb.database: gestion-document
restart: on-failure
ms-notification-service:
build: ./ms-notification/
image: ms-notification-image
depends_on:
- eureka-server
- gateway-service
- mysql
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/notifications
spring.datasource.password: password
restart: on-failure
ms-citizen-social-service:
build: ./ms-participation-citoyen/
image: ms-citizen-social-image
depends_on:
- eureka-server
- gateway-service
- mysql
environment:
profile: "default"
eureka.client.serviceUrl.defaultZone: "http://eureka-server:8888/eureka"
spring.datasource.url: jdbc:mysql://mysql:3306/citizen_social
spring.datasource.password: password
restart: on-failure