-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
100 lines (94 loc) · 2.11 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
version: '3.9'
services:
mongo_conatiner:
image: mongo:latest
environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: productdb
ports:
- 27017:27017
volumes:
- "/Volumes/Development/mongodb_12/db:/data/db"
- "/Volumes/Development/mongodb_12/configdb:/data/configdb"
rabbit:
image: rabbitmq:3.8-management-alpine
container_name: rabbit-mq
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
expose:
- "15672"
depends_on:
- mongo_conatiner
environment:
- CLUSTERED=true
- RAM_NODE=true
- CLUSTER_WITH=rabbit
- RABBITMQ_DEFAULT_USER=bharat
- RABBITMQ_DEFAULT_PASS=bharat
discovery:
build: discovery-service
image: discovery-service:latest
restart: on-failure
ports:
- 8761:8761
- 18787:8787
networks:
- my_cloud_network
order_ms:
build: order-service
image: order-service:latest
restart: on-failure
ports:
- 8200:8200
- 38787:8787
depends_on:
- discovery
links:
- discovery
- mongo_conatiner
networks:
- my_cloud_network
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://discovery:8761/eureka/
product_ms:
build: product-service
image: product-service:latest
restart: on-failure
ports:
- 8300:8300
- 28787:8787
depends_on:
- order_ms
- discovery
- mongo_conatiner
links:
- order_ms
- discovery
- mongo_conatiner
networks:
- my_cloud_network
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://discovery:8761/eureka/
zuul-api-getway:
build: api-getway
image: api-getway:latest
restart: on-failure
ports:
- 8600:8600
- 8780:8787
depends_on:
- discovery
- order_ms
- product_ms
links:
- discovery
networks:
- my_cloud_network
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://discovery:8761/eureka/
networks:
my_cloud_network:
driver: bridge