-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-replicate.yml
51 lines (42 loc) · 1.09 KB
/
docker-compose-replicate.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
services:
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
redis-source:
image: redis/redis-stack-server:latest
hostname: redis-source
ports:
- 6379:6379
redis-cli:
image: redis/redis-stack-server:latest
depends_on:
- redis-source
command: "redis-cli -h redis-source config set notify-keyspace-events KEA"
redis-target:
image: redis/redis-stack-server:latest
hostname: redis-target
ports:
- 6380:6379
riot-gen:
image: riotx/riotx:latest
depends_on:
- redis-source
command: generate -h redis-source --sleep 1 --count 1000000
riot-replicate:
image: riotx/riotx:latest
depends_on:
- redis-target
command: replicate redis-source:6379 redis-target:6379 --mode live --metrics
ports:
- 8080:8080