forked from bnb-chain/node-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (94 loc) · 2.97 KB
/
docker-compose.yml
File metadata and controls
100 lines (94 loc) · 2.97 KB
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
94
95
96
97
98
99
100
version: '3.8'
services:
genesis:
build:
context: .
dockerfile: docker/genesis-builder/Dockerfile
container_name: genesis-builder
volumes:
- ./genesis-out:/workspace/genesis-out
environment:
- PASSED_FORK_DELAY=${PASSED_FORK_DELAY:-60}
networks:
- spc-network
spc-validator-1:
image: ghcr.io/simplechain-org/simplechain-v2:latest
container_name: spc-validator-1
depends_on:
- genesis
user: root
entrypoint: ["/bin/bash"]
command: ["-c", "cp /entrypoint/docker-entrypoint.sh /usr/local/bin/ && chmod +x /usr/local/bin/docker-entrypoint.sh && exec /usr/local/bin/docker-entrypoint.sh"]
environment:
- NODE_TYPE=validator
- VALIDATOR_INDEX=0
volumes:
- ./docker-entrypoint.sh:/entrypoint/docker-entrypoint.sh:ro
- ./keys/password.txt:/home/sipc2/keys/password.txt:ro
- ./keys/validator-nodekey0:/home/sipc2/keys/nodekey:ro
- ./keys/consensus0/keystore:/home/sipc2/keys/consensus0/keystore:ro
- ./keys/bls0/bls:/home/sipc2/keys/bls0/bls:ro
- ./genesis-out/genesis.json:/home/sipc2/config/genesis.json:ro
- ./config.toml:/home/sipc2/config/config.toml:ro
- ./validator1-data:/data
ports:
- "9100:9000"
- "8645:8545"
- "8646:8546"
- "31303:30303"
- "6160:6060"
networks:
- spc-network
restart: unless-stopped
spc-validator-2:
image: ghcr.io/simplechain-org/simplechain-v2:latest
container_name: spc-validator-2
depends_on:
- genesis
user: root
entrypoint: ["/bin/bash"]
command: ["-c", "cp /entrypoint/docker-entrypoint.sh /usr/local/bin/ && chmod +x /usr/local/bin/docker-entrypoint.sh && exec /usr/local/bin/docker-entrypoint.sh"]
environment:
- NODE_TYPE=validator
- VALIDATOR_INDEX=1
volumes:
- ./docker-entrypoint.sh:/entrypoint/docker-entrypoint.sh:ro
- ./keys/password.txt:/home/sipc2/keys/password.txt:ro
- ./keys/validator-nodekey1:/home/sipc2/keys/nodekey:ro
- ./keys/consensus1/keystore:/home/sipc2/keys/consensus1/keystore:ro
- ./keys/bls1/bls:/home/sipc2/keys/bls1/bls:ro
- ./genesis-out/genesis.json:/home/sipc2/config/genesis.json:ro
- ./config.toml:/home/sipc2/config/config.toml:ro
- ./validator2-data:/data
ports:
- "9200:9000"
- "8745:8545"
- "8746:8546"
- "32303:30303"
- "6260:6060"
networks:
- spc-network
restart: unless-stopped
# bsc-fullnode:
# build: .
# container_name: bsc-fullnode
# environment:
# - NODE_TYPE=fullnode
# volumes:
# - ./deployment/fullnode:/home/bsc
# - ./genesis/genesis.json:/home/bsc/genesis.json
# - ./config.toml:/home/bsc/config.toml
# ports:
# - "8745:8545"
# - "8746:8546"
# - "32303:30303"
# - "6260:6060"
# networks:
# - bsc-network
# restart: unless-stopped
networks:
spc-network:
driver: bridge
volumes:
validator1-data:
validator2-data: