This repository was archived by the owner on Jul 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (54 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (54 loc) · 1.3 KB
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
version: '3.8'
services:
ferricstore-1:
build: .
environment:
FERRICSTORE_PORT: "6379"
FERRICSTORE_NODE_NAME: "ferricstore@ferricstore-1"
FERRICSTORE_COOKIE: "benchmark"
FERRICSTORE_CLUSTER_NODES: "ferricstore@ferricstore-2,ferricstore@ferricstore-3"
volumes:
- data1:/data
networks:
- bench
ferricstore-2:
build: .
environment:
FERRICSTORE_PORT: "6379"
FERRICSTORE_NODE_NAME: "ferricstore@ferricstore-2"
FERRICSTORE_COOKIE: "benchmark"
FERRICSTORE_CLUSTER_NODES: "ferricstore@ferricstore-1,ferricstore@ferricstore-3"
volumes:
- data2:/data
networks:
- bench
ferricstore-3:
build: .
environment:
FERRICSTORE_PORT: "6379"
FERRICSTORE_NODE_NAME: "ferricstore@ferricstore-3"
FERRICSTORE_COOKIE: "benchmark"
FERRICSTORE_CLUSTER_NODES: "ferricstore@ferricstore-1,ferricstore@ferricstore-2"
volumes:
- data3:/data
networks:
- bench
haproxy:
image: haproxy:2.9-alpine
ports:
- "6379:6379"
volumes:
- ./bench/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
depends_on:
- ferricstore-1
- ferricstore-2
- ferricstore-3
networks:
- bench
volumes:
data1:
data2:
data3:
networks:
bench:
driver: bridge