-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
113 lines (112 loc) · 2.46 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
version: "3.8"
services:
mongodb:
container_name: mongodb
image: "mongo:latest"
restart: always
networks:
- server-network
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
expose:
- "27017"
discovery:
build: ./Eureka_server
ports:
- 8761:8761
image: eureka_image
networks:
- server-network
gateway:
build: ./Api_Gateway_server
ports:
- 8081:8081
image: gateway
networks:
- server-network
depends_on:
- discovery
environment:
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
blog-ms:
build: ./Blog-management-microservice
ports:
- 8001:8001
image: blog-ms
networks:
- server-network
depends_on:
- discovery
environment:
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
auction-ms:
build: ./auction-management-microservice
ports:
- 8002:8002
image: auction-ms
depends_on:
- discovery
environment:
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
networks:
- server-network
event-ms:
build: ./event-management-microservice
ports:
- 8004:8004
image: event-ms
depends_on:
- discovery
networks:
- server-network
environment:
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
order-ms:
build: ./order-management-microservice
ports:
- 8005:8005
image: order-ms
depends_on:
- discovery
environment:
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
networks:
- server-network
gallery-ms:
build: ./Gallery-management-microservice
ports:
- 8006:8006
image: gallery-ms
depends_on:
- discovery
environment:
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
networks:
- server-network
user-ms:
build: ./user-management-microservice
ports:
- 3001:3001
image: user-ms
command: npm run start:prod
restart: unless-stopped
networks:
- server-network
depends_on:
- discovery
- mongodb
environment:
- eureka.client.serviceUrl.defaultZone=http://discovery:8761/eureka/
client-ms:
build: ./artlab-client
ports:
- 3000:3000
image: client-ms
networks:
- server-network
networks:
server-network:
volumes:
mongodb_data_container: