-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1013 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
version: '3'
services:
db1:
image: cockroachdb/cockroach
ports:
- 8080:8080
- 26257:26257 # for sql connection
volumes:
- ./data/db1:/cockroach/cockroach-data
command: start --insecure
db2:
image: cockroachdb/cockroach
ports:
- 8081:8080
volumes:
- ./data/db2:/cockroach/cockroach-data
command: start --insecure --join db1
db3:
image: cockroachdb/cockroach
ports:
- 8082:8080
volumes:
- ./data/db3:/cockroach/cockroach-data
command: start --insecure --join db1
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus:/etc/prometheus
- ./data/prometheus:/prometheus-data
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
# This is actually to persist the configuration
# that we have to set up manually on first run:
- ./data/grafana:/var/lib/grafana
client:
build: ./client
ports:
- 8079:8079