-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
158 lines (135 loc) · 3.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
158 lines (135 loc) · 3.24 KB
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
version: "3.7"
services:
Reclamation:
container_name: reclamation
build:
context: .
dockerfile: ./Reclamation/Dockerfile
ports:
- "8082:8082"
hostname: localhost
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://serviceregistry:8761/eureka/
image: "service-reclamtion"
depends_on:
- Eureka
Review:
container_name: review
build:
context: .
dockerfile: ./Reviews/Dockerfile
ports:
- "8084:8084"
hostname: localhost
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://serviceregistry:8761/eureka/
image: "service-review"
depends_on:
- Eureka
Category:
container_name: Category
build:
context: .
dockerfile: ./Category/Dockerfile
ports:
- "8085:8085"
hostname: localhost
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://serviceregistry:8761/eureka/
image: "category"
depends_on:
- Eureka
Service:
container_name: service
build:
context: .
dockerfile: ./Service/DockerFile
ports:
- "8083:8083"
hostname: localhost
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://serviceregistry:8761/eureka/
image: "service"
depends_on:
- Eureka
Commande:
container_name: commande
build:
context: .
dockerfile: ./Commande_micro/Dockerfile
ports:
- "8088:8088"
hostname: localhost
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://serviceregistry:8761/eureka/
image: "commande"
depends_on:
- Eureka
Subscription:
container_name: subscription
build:
context: .
dockerfile: ./MicroSubscription/Dockerfile
ports:
- "8086:8086"
hostname: localhost
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://serviceregistry:8761/eureka/
image: "subscription"
depends_on:
- Eureka
payment:
build: ./payement
ports:
- "3000:3000"
environment:
DATABASE_URL: "mongodb+srv://bahaeddine170:ebaiwDFSlXUMoCLb@cluster0.ag1fzjf.mongodb.net/test"
mongo:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: "bahaeddine170"
MONGO_INITDB_ROOT_PASSWORD: "ebaiwDFSlXUMoCLb"
MONGO_INITDB_DATABASE: "test"
ports:
- "27017:27017"
gateway:
build:
context: ./API_Gateway_Server
ports:
- "8081:8081"
image: "apigateway"
depends_on:
- Eureka
environment:
- eureka.client.serviceUrl.defaultZone=http://serviceregistry:8761/eureka/
Eureka:
container_name: serviceregistry
build:
context: ./EurekaServer
ports:
- "8761:8761"
hostname: serviceregistry
image: "eureka"
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://serviceregistry:8761/eureka/
mysql:
image: mysql
#restart: unless-stopped
networks:
- internal
ports:
- "3306:3306"
volumes:
- ./local_data_save:/var/lib/mysql
- ./dbScripts:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: admin
MYSQL_PASSWORD: admin
networks:
mynetwork:
driver: bridge
external:
driver: bridge
internal:
driver: bridge