-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrancher-docker-compose.yml
119 lines (119 loc) · 3.53 KB
/
rancher-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
118
119
version: '2'
services:
eventstore:
mem_limit: 104857600
image: klhauser/microservices4vaadin-eventstore:latest
links:
- configserver
- discovery
- mysql
- rabbitmq
- mongodb
labels:
io.rancher.scheduler.affinity:host_label: system=utils
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
edge:
mem_limit: 314572800
image: klhauser/microservices4vaadin-edge:latest
links:
- configserver
- discovery
- authserver
- frontend
- redis
ports:
- 443:443/tcp
- 80:80/tcp
labels:
io.rancher.scheduler.affinity:host_label: system=frontend
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
configserver:
mem_limit: 104857600
image: klhauser/microservices4vaadin-config:latest
labels:
io.rancher.scheduler.affinity:host_label: system=utils
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
discovery:
mem_limit: 157286400
image: klhauser/microservices4vaadin-discovery:latest
links:
- configserver
ports:
- 8761:8761/tcp
labels:
io.rancher.scheduler.affinity:host_label: system=utils
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
authserver:
mem_limit: 104857600
image: klhauser/microservices4vaadin-authserver:latest
links:
- configserver
- discovery
- eventstore
- mysql
- redis
labels:
io.rancher.scheduler.affinity:host_label: system=frontend
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
userservice:
mem_limit: 209715200
image: klhauser/microservices4vaadin-userservice:latest
links:
- configserver
- discovery
- mysql
- rabbitmq
labels:
io.rancher.scheduler.affinity:host_label: system=utils
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
mysql:
image: mysql:5.7
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_USER: root
volumes:
- /microservices4vaadin/mysql/conf.d:/etc/mysql/conf.d
- /microservices4vaadin/mysql/data:/var/lib/mysql
labels:
io.rancher.scheduler.affinity:host_label: system=database
io.rancher.container.hostname_override: container_name
rabbitmq:
image: rabbitmq:3.5.1
labels:
io.rancher.scheduler.affinity:host_label: system=database
io.rancher.container.hostname_override: container_name
mongodb:
image: mongo:3.4.10
stdin_open: true
volumes:
- /microservices4vaadin/mongo/data:/data/db
tty: true
command:
- --smallfiles
labels:
io.rancher.scheduler.affinity:host_label: system=database
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
redis:
image: redis:4.0.2-alpine
labels:
io.rancher.scheduler.affinity:host_label: system=database
io.rancher.container.hostname_override: container_name
frontend:
mem_limit: 524288000
image: klhauser/microservices4vaadin-frontend:latest
links:
- configserver
- userservice
- discovery
- redis
labels:
io.rancher.scheduler.affinity:host_label: system=frontend
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always