-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 899 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
version: "3.9"
x-common-variables: &common-variables
RUST_BACKTRACE: 1
NODES: "[1, 2, 3]"
services:
network-actor:
build: ./network_actor/
container_name: network-actor
hostname: net
environment:
<<: *common-variables
PORT_MAPPINGS: "[[8013,8031],[8012,8021],[8023,8032]]"
CLIENT_PORTS: "[8001, 8002, 8003]"
ports: []
stdin_open: true
tty: true
s1:
build: ./kv_store/
container_name: s1
hostname: s1
environment:
<<: *common-variables
PID: 1
depends_on:
- network-actor
s2:
build: ./kv_store/
container_name: s2
hostname: s2
environment:
<<: *common-variables
PID: 2
depends_on:
- network-actor
s3:
build: ./kv_store/
container_name: s3
hostname: s3
environment:
<<: *common-variables
PID: 3
depends_on:
- network-actor