-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
56 lines (55 loc) · 1.69 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
version: '2'
services:
redis-server:
image: shuliyey/rancher-redis-cluster:redis-server
restart: always
sysctls:
- net.core.somaxconn=511
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: redis-server-data
volumes_from:
- redis-server-data
redis-sentinel:
image: shuliyey/rancher-redis-cluster:redis-sentinel
restart: always
sysctls:
- net.core.somaxconn=511
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: redis-sentinel-data
volumes_from:
- redis-sentinel-data
redis-server-data:
network_mode: none
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
volumes:
- redis-server-data-volume:/data
entrypoint: /bin/true
image: busybox
redis-sentinel-data:
network_mode: none
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
volumes:
- redis-sentinel-data-volume:/data
entrypoint: /bin/true
image: busybox
volumes:
redis-server-data-volume:
driver: local
per_container: true
redis-sentinel-data-volume:
driver: local
per_container: true