-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dl3n.yaml
75 lines (73 loc) · 1.48 KB
/
docker-compose.dl3n.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
65
66
67
68
69
70
71
72
73
74
75
version: '3.5'
# have not configed network yet... in the future there will only
# be one scaled service with dynamic port assignment.
services:
dl3n-seeder:
container_name: dl3n-seeder
build:
context: .
dockerfile: Dockerfile.dl3ndemo
ports:
- 3001:3000
environment:
- NODE_ID=dl3n-seeder
- PEER_HOSTNAME=alpha
- SUCCESSOR_LIST_SIZE=3
depends_on:
- alpha
- bravo
- charlie
dl3n-getter:
container_name: dl3n-getter
build:
context: .
dockerfile: Dockerfile.dl3ndemo
ports:
- 3002:3000
environment:
- NODE_ID=dl3n-getter
- PEER_HOSTNAME=alpha
- SUCCESSOR_LIST_SIZE=3
depends_on:
- alpha
- bravo
- charlie
alpha:
container_name: alpha
build:
context: .
dockerfile: Dockerfile
ports:
- 9000
environment:
- NODE_ID=alpha
- PEER_HOSTNAME=
- SUCCESSOR_LIST_SIZE=3
bravo:
container_name: nodeBravo
build:
context: .
dockerfile: Dockerfile
ports:
- 9000
environment:
- NODE_ID=nodeBravo
- PEER_HOSTNAME=alpha
- SUCCESSOR_LIST_SIZE=3
restart: "no"
depends_on:
- alpha
charlie:
container_name: nodeCharlie
build:
context: .
dockerfile: Dockerfile
ports:
- 9000
environment:
- NODE_ID=nodeCharlie
- PEER_HOSTNAME=alpha
- SUCCESSOR_LIST_SIZE=3
restart: "no"
depends_on:
- bravo