-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose.yml
50 lines (46 loc) · 1012 Bytes
/
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
version: "3"
services:
roach1:
container_name: roach1
image: cockroachdb/cockroach:v19.2.1
command: start --insecure
ports:
- "26257:26257"
- "8111:8080"
volumes:
- ./cockroach-data/roach1:/cockroach/cockroach-data
networks:
roachnet:
aliases:
- roach1
roach2:
container_name: roach2
image: cockroachdb/cockroach:v19.2.1
command: start --insecure --join=roach1
volumes:
- ./cockroach-data/roach2:/cockroach/cockroach-data
depends_on:
- roach1
networks:
roachnet:
aliases:
- roach2
roach3:
container_name: roach3
image: cockroachdb/cockroach:v19.2.1
command: start --insecure --join=roach1
volumes:
- ./cockroach-data/roach3:/cockroach/cockroach-data
depends_on:
- roach1
networks:
roachnet:
aliases:
- roach3
redis:
ports:
- "6379:6379"
image: "redis:alpine"
networks:
roachnet:
driver: bridge