-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-odyssey.yml
69 lines (61 loc) · 1.85 KB
/
docker-compose-odyssey.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
65
66
67
68
69
version: '3.9'
services:
roach-0:
container_name: roach-0
hostname: roach-0
image: cockroachdb/cockroach:latest-v22.2
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
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
roach-1:
container_name: roach-1
hostname: roach-1
image: cockroachdb/cockroach:latest-v22.2
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
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
roach-2:
container_name: roach-2
hostname: roach-2
image: cockroachdb/cockroach:latest-v22.2
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
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
init:
container_name: init
image: cockroachdb/cockroach:latest-v22.2
command: init --host=roach-0 --insecure
depends_on:
- roach-0
lb:
container_name: lb
hostname: lb
build: haproxy
ports:
- "26257:26257"
- "8080:8080"
- "8081:8081"
depends_on:
- roach-0
- roach-1
- roach-2
client:
container_name: client
image: cockroachdb/cockroach:latest-v22.2
entrypoint: ["/usr/bin/tail", "-f", "/dev/null"]
hostname: client
depends_on:
- lb
odyssey:
container_name: odyssey
build:
dockerfile: ./odyssey/odyssey/docker/Dockerfile
context: .
entrypoint: ["/usr/bin/tail", "-f", "/dev/null"]
environment:
CMAKE_BUILD_TYPE: "${CMAKE_BUILD_TYPE:-Release}"
ports:
- "27000:27000"
volumes:
- ./odyssey/odyssey/odyssey.conf:/etc/odyssey.conf
- ./odyssey/odyssey:/odyssey