-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
111 lines (99 loc) · 2.2 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
version: '2.1'
services:
eureka-server:
build: eureka-server/
depends_on:
config-server:
condition: service_healthy
restart: always
network_mode: "host"
image: demo-eureka-service
hostname: localhost
ports:
- 9090:9090
healthcheck:
test: "exit 0"
config-server:
build: config-service/
restart: always
network_mode: "host"
image: demo-config-service
hostname: localhost
ports:
- 8891:8891
healthcheck:
test: "exit 0"
api-gateway:
build: zuul-gatewayproxy/
depends_on:
config-server:
condition: service_healthy
eureka-server:
condition: service_healthy
restaurant-app:
condition: service_healthy
restart: always
network_mode: "host"
image: demo-api-gateway
hostname: localhost
ports:
- 8092:8092
healthcheck:
test: "exit 0"
restaurant-app:
build: restaurant-springboot-mvc-test/
image: demo-restaurant-app
restart: always
network_mode: "host"
hostname: localhost
ports:
- 8080:8080
depends_on:
config-server:
condition: service_healthy
eureka-server:
condition: service_healthy
healthcheck:
test: "exit 0"
# services:
# eurekaServer:
# build: eureka-server/
# restart: always
# image: demo-eureka-service
# network_mode: "host"
# hostname: localhost
# ports:
# - "9090:9090"
# configService:
# build: config-service/
# image: demo-config-service
# restart: always
# network_mode: "host"
# hostname: localhost
# ports:
# - "8891:8891"
# depends_on:
# - eurekaServer
# restaurantApp:
# build: restaurant-springboot-mvc-test/
# image: demo-restaurant-app
# restart: always
# network_mode: "host"
# hostname: localhost
# ports:
# - "8080:8080"
# depends_on:
# - configService
# - eurekaServer
# zuulApi:
# build: zuul-gatewayproxy/
# image: demo-zuul-api
# restart: always
# network_mode: "host"
# hostname: localhost
# ports:
# - "8092:8092"
# depends_on:
# - eurekaServer
# - configService
# - restaurantApp