-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
64 lines (57 loc) · 1.25 KB
/
docker-compose.yaml
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.4'
x-envs:
&log-env
RUST_LOG: info,sqlx=warn
RUST_BACKTRACE: 1
x-clients:
&client-config
image: prover-cli
build:
context: .
dockerfile: ./images/cluster_client_test.docker
depends_on:
- "coordinator"
volumes:
- ./config/client.yaml:/opt/client.yaml
services:
db:
image: timescale/timescaledb:2.1.0-pg13
container_name: exchange_pq
restart: always
volumes:
- ~/data/volumes/postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: prover_cluster
POSTGRES_USER: coordinator
POSTGRES_PASSWORD: coordinator_AA9944
coordinator:
image: prover-coordinator
build:
context: .
dockerfile: ./images/cluster_coordinator.docker
# args:
# buildno: 1
depends_on:
- "db"
container_name: cluster_coordinator
environment:
<< : *log-env
volumes:
- ./config/coordinator.yaml:/opt/coordinator.yaml
client1:
<< : *client-config
environment:
<< : *log-env
CLIENT_PROVER_ID: x1
client2:
<< : *client-config
environment:
<< : *log-env
CLIENT_PROVER_ID: x2
client3:
<< : *client-config
environment:
<< : *log-env
CLIENT_PROVER_ID: x3