-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-volumes.yml
64 lines (56 loc) · 1.86 KB
/
docker-compose-volumes.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
version: '3.9'
services:
roach-0:
container_name: roach-0
hostname: roach-0
image: cockroachdb/cockroach:latest-v23.1
command: start --insecure --join=roach-0,roach-1,roach-2 --listen-addr=roach-0:26257 --advertise-addr=roach-0:26257 --max-sql-memory=.25 --cache=.25 --store=${PWD}/roach-0-data:/cockroach/cockroach-data
volumes:
- ${PWD}/roach-0-data:/cockroach/cockroach-data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
roach-1:
container_name: roach-1
hostname: roach-1
image: cockroachdb/cockroach:latest-v23.1
command: start --insecure --join=roach-0,roach-1,roach-2 --listen-addr=roach-1:26257 --advertise-addr=roach-1:26257 --max-sql-memory=.25 --cache=.25 --store=${PWD}/roach-1-data:/cockroach/cockroach-data
volumes:
- ${PWD}/roach-1-data:/cockroach/cockroach-data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
roach-2:
container_name: roach-2
hostname: roach-2
image: cockroachdb/cockroach:latest-v23.1
command: start --insecure --join=roach-0,roach-1,roach-2 --listen-addr=roach-2:26257 --advertise-addr=roach-2:26257 --max-sql-memory=.25 --cache=.25 --store=${PWD}/roach-2-data:/cockroach/cockroach-data
volumes:
- ${PWD}/roach-2-data:/cockroach/cockroach-data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
init:
container_name: init
image: cockroachdb/cockroach:latest-v23.1
command: init --host=roach-0 --insecure
depends_on:
- roach-0
lb:
container_name: lb
hostname: lb
build: haproxy
ports:
- "26000:26000"
- "8080:8080"
- "8081:8081"
depends_on:
- roach-0
- roach-1
- roach-2
client:
container_name: client
hostname: client
image: cockroachdb/cockroach:latest-v23.1
entrypoint: ["/usr/bin/tail", "-f", "/dev/null"]
volumes:
roach-0-data:
roach-1-data:
roach-2-data: