-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
93 lines (90 loc) · 2.68 KB
/
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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
services:
node-builder:
image: phantasma-node-builder
platform: linux/amd64
build:
context: .
dockerfile: ./DOCKER/DockerfileNodeBuilder
volumes:
- node_build:/app/build
entrypoint: /bin/bash -c "tail -f /dev/null"
node:
image: phantasma-node:latest-amd64
platform: linux/amd64
build:
dockerfile: ./DOCKER/DockerfileNodeWin
environment:
- NODE_ID=0
volumes:
- node_build:/app/build
- node_storage:/app/node/storage
networks:
- phantasma-nodes
ports:
- "7077:7077"
- "26056-26058:26056-26058"
depends_on:
- node-builder
entrypoint: /bin/bash -c "mkdir -p /app/node/tendermint/ && cp -rf /app/config/node0/* /app/node/tendermint/ && cp -r /app/node/tendermint/config.json /app/node/config.json && /app/wrapper.sh"
node1:
image: phantasma-node:latest-amd64
platform: linux/amd64
build:
dockerfile: ./DOCKER/DockerfileNodeWin
environment:
- NODE_ID=1
volumes:
- node_build:/app/build
- node_storage:/app/node/storage
networks:
- phantasma-nodes
ports:
- "7078:7078"
- "26156-26158:26156-26158"
depends_on:
- node-builder
entrypoint: /bin/bash -c "mkdir -p /app/node/tendermint/ && cp -rf /app/config/node1/* /app/node/tendermint/ && cp -r /app/node/tendermint/config.json /app/node/config.json && /app/wrapper.sh"
node2:
image: phantasma-node:latest-amd64
platform: linux/amd64
build:
dockerfile: ./DOCKER/DockerfileNodeWin
environment:
- NODE_ID=2
volumes:
- node_build:/app/build
- node_storage:/app/node/storage
networks:
- phantasma-nodes
ports:
- "7079:7079"
- "26256-26258:26256-26258"
depends_on:
- node-builder
entrypoint: /bin/bash -c "mkdir -p /app/node/tendermint/ && cp -rf /app/config/node2/* /app/node/tendermint/ && cp -r /app/node/tendermint/config.json /app/node/config.json && /app/wrapper.sh"
node3:
image: phantasma-node:latest-amd64
platform: linux/amd64
build:
dockerfile: ./DOCKER/DockerfileNodeWin
environment:
- NODE_ID=3
volumes:
- node_build:/app/build
- node_storage:/app/node/storage
networks:
- phantasma-nodes
ports:
- "7080:7080"
- "26356-26358:26356-26358"
depends_on:
- node-builder
entrypoint: /bin/bash -c "mkdir -p /app/node/tendermint/ && cp -rf /app/config/node3/* /app/node/tendermint/ && cp -r /app/node/tendermint/config.json /app/node/config.json && /app/wrapper.sh"
networks:
phantasma-nodes:
driver: bridge
volumes:
node_data:
node_build:
node_storage: