forked from spacemeshos/go-spacemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 2 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
version: '3.7'
services:
spacemesh:
build: .
container_name: go-spacemesh
command: [
"--tcp-port", "${SMESH_PORT:-7513}",
"--coinbase", "${SMESH_COINBASE:-0x1234}",
"--golden-atx", "${SMESH_GOLDEN_ATX:-0x5678}",
"--poet-server", "${SMESH_POET_SERVER:?SMESH_POET_SERVER Must be specified}",
"--post-space", "${SMESH_POST_SPACE:-1024}",
"--test-mode",
"--start-mining",
"--randcon", "${SMESH_RANDCON:-8}",
"--layer-duration-sec", "${SMESH_LAYER_DURATION:-180}",
"--hare-wakeup-delta", "${SMESH_HARE_WAKEUP_DELTA:-30}",
"--hare-round-duration-sec", "${SMESH_HARE_ROUND_DURATION:-30}",
"--layers-per-epoch", "${SMESH_LAYERS_PER_EPOCH:-7}",
"--eligibility-confidence-param", "${SMESH_CONFIDENCE_PARAM:-25}",
"--eligibility-epoch-offset", "0",
"--layer-average-size", "${SMESH_LAYER_SIZE:-200}",
"--genesis-total-weight", "${SMESH_GENESIS_TOTAL_WEIGHT:-26214400}",
"--hare-committee-size", "${SMESH_HARE_COMMITTEE_SIZE:-800}",
"--hare-max-adversaries", "${SMESH_HARE_MAX_ADVERSARIES:-399}",
"--sync-request-timeout", "${SMESH_SYNC_REQ_TIMEOUT:-60000}",
"--post-labels", "${SMESH_POST_LABELS:-100}",
"--max-inbound", "${SMESH_MAX_INBOUND:-12}",
"--genesis-time", "${SMESH_GENESIS_TIME:?SMESH_GENESIS_TIME Must be specified}",
"--bootstrap",
"--bootnodes", "${SMESH_BOOTNODES:?SMESH_BOOTNODES Must be specified}",
"--executable-path", "/bin/go-spacemesh",
"-d", "/root/spacemeshdata/" ]
ports:
- "${SMESH_PORT:-7513}:${SMESH_PORT:-7513}"
networks:
spacemesh: {}
volumes:
- "${SMESH_HOST_DATA_PATH:-smesh-data}:/root"
volumes:
smesh-data:
# Specify network interface name to make firewall rules easier.
networks:
spacemesh:
driver: bridge
driver_opts:
com.docker.network.bridge.name: "docker-smesh"