-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
54 lines (50 loc) · 1.52 KB
/
docker-compose.example.yml
File metadata and controls
54 lines (50 loc) · 1.52 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
version: '3.8'
services:
contract-mock:
build:
dockerfile: ./contract-mock/Dockerfile
ports:
- "8010:80"
container_name: contract-mock
volumes:
- contract-mock-data:/app/data
validator:
build:
dockerfile: ./node/Dockerfile
container_name: validator
environment:
- API_ADDR=0.0.0.0:8011
- PUBLIC_API_URL=http://127.0.0.1:8011
- EXTERNAL_IP=127.0.0.1
- P2P_PORT=30333
- SEED_PHRASE=test test test test test test test test test test test junk
- CONTRACT_MOCK_URL=http://127.0.0.1:8010
- RUST_BACKTRACE=1
- RUST_LOG=debug
volumes:
- validator-data:/app/data
network_mode: host # important for now, since NAT is not implemented yet.
# I recommend to deploy the storage nodes to a Kubernetes cluster or something similar.
storage-node-1:
build:
dockerfile: ./node/Dockerfile
container_name: validator
environment:
- NODE_ID=0 # The node will work in storage mode if NODE_ID is set
- API_ADDR=0.0.0.0:8012
- PUBLIC_API_URL=http://127.0.0.1:8012
- EXTERNAL_IP=127.0.0.1
- P2P_PORT=30334
- BOOT_NODE=/ip4/other-node-ip/udp/30333/quic-v1/p2p/other-node-peer-id
- SEED_PHRASE=test test test test test test test test test test test junk
- CONTRACT_MOCK_URL=http://127.0.0.1:8010
- RUST_BACKTRACE=1
- RUST_LOG=debug
volumes:
- node-1-data:/app/data
network_mode: host
# ...
volumes:
validator-data:
contract-mock-data:
node-1-data: