-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (60 loc) · 1.19 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
services:
#Node 1
re1:
image: redislabs/redis:latest
container_name: re1
restart: unless-stopped
tty: true
cap_add:
- sys_resource
ports:
- 8443:8443
- 12000:12000
- 9443:9443
- 8070
networks:
re_cluster:
ipv4_address: 192.168.20.2
#Node 2
re2:
image: redislabs/redis:latest
container_name: re2
restart: unless-stopped
tty: true
cap_add:
- sys_resource
networks:
re_cluster:
ipv4_address: 192.168.20.3
#Node 3
re3:
image: redislabs/redis:latest
container_name: re3
restart: unless-stopped
tty: true
cap_add:
- sys_resource
networks:
re_cluster:
ipv4_address: 192.168.20.4
prometheus-server:
image: prom/prometheus
container_name: prometheus
ports:
- 9090:9090
volumes:
- $PWD/prometheus.yml:/etc/prometheus/prometheus.yml
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
re_cluster:
ipv4_address: 192.168.20.5
#Docker Networks
networks:
re_cluster:
name: re_network
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.20.0/24