forked from mit-dci/opencbdc-tx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-2pc.yml
67 lines (62 loc) · 1.36 KB
/
docker-compose-2pc.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
version: '3'
services:
sentinel0:
build:
context: .
target: twophase
image: opencbdc-tx-twophase
tty: true
restart: always
command: ./build/src/uhs/twophase/sentinel_2pc/sentineld-2pc 2pc-compose.cfg 0
ports:
- 5555:5555
depends_on:
- "coordinator0"
- "shard0"
networks:
- 2pc-network
healthcheck:
test: ["CMD-SHELL", "netstat -ltn | grep -c 5555"]
interval: 30s
timeout: 10s
retries: 5
coordinator0:
build:
context: .
target: twophase
image: opencbdc-tx-twophase
tty: true
command: ./build/src/uhs/twophase/coordinator/coordinatord 2pc-compose.cfg 0 0
expose:
- "7777"
depends_on:
- "shard0"
networks:
- 2pc-network
healthcheck:
test: ["CMD-SHELL", "netstat -ltn | grep -c 7777"]
interval: 30s
timeout: 10s
retries: 5
restart: always
shard0:
build:
context: .
target: twophase
image: opencbdc-tx-twophase
tty: true
command: ./build/src/uhs/twophase/locking_shard/locking-shardd 2pc-compose.cfg 0 0
expose:
- "6666"
ports:
- 6767:6767
networks:
- 2pc-network
healthcheck:
test: ["CMD-SHELL", "netstat -ltn | grep -c 6666"]
interval: 30s
timeout: 10s
retries: 5
networks:
2pc-network:
name: 2pc-network