-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
executable file
·117 lines (105 loc) · 2.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
version: '2'
services:
eureka-server:
build: eureka-server/
restart: always
network_mode: "host"
hostname: localhost
image: eureka-server
ports:
- 8085:8085
config-service:
build: config-server/
restart: always
network_mode: "host"
image: config-service
hostname: localhost
ports:
- 8888:8888
zuul-api:
build: zuul-api/
depends_on:
- config-service
- eureka-server
restart: always
network_mode: "host"
image: zuul-api
hostname: localhost
ports:
- 8080:8080
mongo:
image: mongo
ports:
- 27017:27017
expose:
- 27017
container_name: mongo-service
network_mode: "host"
hostname: localhost
volumes:
- ./data/db:/data/db
user-login-service:
build: user-login-service/
depends_on:
- eureka-server
- rabbitmq
- mysql
restart: always
network_mode: "host"
image: user-login-service
hostname: localhost
ports:
- 8088:8088
service-provider-profile-service:
build: service-provider-profile-service/
depends_on:
- config-service
- eureka-server
- rabbitmq
- mongo
restart: always
network_mode: "host"
image: service-provider-profile-service
hostname: localhost
ports:
- 8077:8077
innovator-profile-service:
build: innovator-profile-service/
depends_on:
- config-service
- eureka-server
- rabbitmq
- mongo
restart: always
network_mode: "host"
image: innovator-profile-service
hostname: localhost
ports:
- 8094:8094
mysql:
image: mysql:5.7
ports:
- 3306:3306
container_name: mysql
environment:
MYSQL_DATABASE: LoginDb
MYSQL_USER: root
MYSQL_ALLOW_EMPTY_PASSWORD: "YES"
volumes:
- $HOME/data/datasql:/var/lib/mysql
network_mode: "host"
hostname: localhost
restart: always
rabbitmq:
image: rabbitmq:3.7.5-management
hostname: localhost
ports:
- 5672:5672
- 15672:15672
volumes:
- ./data/rabbitmq:/var/lib/rabbitmq/mnesia/rabbit@app-rabbitmq:cached
environment:
RABBITMQ_ERLANG_COOKIE: 6085e2412b6fa88647466c6a81c0cea0
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
RABBITMQ_DEFAULT_VHOST: /