-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-stack.yml
76 lines (70 loc) · 1.44 KB
/
docker-stack.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
version: "3.4"
services:
message-service:
image: keithtt/message-service:latest
deploy:
endpoint_mode: dnsrr
resources:
limits:
cpus: "0.2"
memory: "128M"
user-service:
image: keithtt/user-service:latest
deploy:
endpoint_mode: dnsrr
resources:
limits:
cpus: "0.2"
memory: "512M"
user-edge-service:
image: keithtt/user-edge-service:latest
deploy:
endpoint_mode: vip
resources:
limits:
cpus: "0.2"
memory: "512M"
ports:
- "8082:8082"
depends_on:
- user-service
- message-service
course-service:
image: keithtt/course-service:latest
deploy:
endpoint_mode: dnsrr
resources:
limits:
cpus: "0.2"
memory: "512M"
depends_on:
- user-service
course-edge-service:
image: keithtt/course-edge-service:latest
deploy:
endpoint_mode: vip
resources:
limits:
cpus: "0.2"
memory: "512M"
ports:
- "8081:8081"
depends_on:
- user-edge-service
api-gateway:
image: keithtt/api-gateway-zuul:latest
deploy:
endpoint_mode: vip
resources:
limits:
cpus: "0.2"
memory: "512M"
ports:
- "8080:8080"
depends_on:
- user-edge-service
- course-edge-service
networks:
default:
external:
name: imooc-overlay