-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
110 lines (104 loc) · 3.06 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
x-namada: &namada-common
restart: unless-stopped
build:
dockerfile: docker/Dockerfile
context: .
args:
- NAMADA_TAG=${NAMADA_TAG:-v0.45.1}
- BUILD_WASM=true
image: ghcr.io/emberstake/namada-selfhost/namada:${NAMADA_TAG:-v0.45.1}
entrypoint: ["sh", "/docker-entrypoint-scripts.d/start-node.sh"]
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
namada:
services:
namada-1:
<<: *namada-common
hostname: namada-1
profiles:
- main
volumes:
- ./config/genesis:/genesis:ro
- ./config/make_balances.py:/scripts/make_balances.py
- ./config/update_params.py:/scripts/update_params.py
- ./masp-params:/root/.masp-params
- ./config/start-node.sh:/docker-entrypoint-scripts.d/start-node.sh
- namada-shared:/root/.namada-shared
- namada-1_data:/root/.local/share/namada
environment:
- GENESIS_DELAY=${GENESIS_DELAY}
- EXTERNAL_IP=${EXTERNAL_IP}
ports:
- "${P2P_PORT}:26656" # p2p
- "${RPC_PORT}:26657" # http rpc
- "${SERVE_PORT}:8123" # configs server
namada-2:
<<: *namada-common
hostname: namada-2
profiles:
- main
volumes:
- ./masp-params:/root/.masp-params
- ./config/start-node.sh:/docker-entrypoint-scripts.d/start-node.sh
- namada-shared:/root/.namada-shared
- namada-2_data:/root/.local/share/namada
ports:
- "26656" # p2p
- "26657" # http rpc
namada-3:
<<: *namada-common
profiles:
- main
hostname: namada-3
volumes:
- ./masp-params:/root/.masp-params
- ./config/start-node.sh:/docker-entrypoint-scripts.d/start-node.sh
- namada-shared:/root/.namada-shared
- namada-3_data:/root/.local/share/namada
ports:
- "26656" # p2p
- "26657" # http rpc
namada-chain-b:
<<: *namada-common
hostname: chain-b
profiles:
- hermes
environment:
- GENESIS_DELAY=${GENESIS_DELAY}
- EXTERNAL_IP=${EXTERNAL_IP}
volumes:
- ./config/genesis-chain-b:/genesis:ro
- ./config/make_balances.py:/scripts/make_balances.py
- ./masp-params:/root/.masp-params
- ./config/start-chain-b.sh:/docker-entrypoint-scripts.d/start-node.sh
- namada-shared:/root/.namada-shared
- namada-chain-b_data:/root/.local/share/namada
hermes:
image: ghcr.io/emberstake/namada-selfhost/hermes:${HERMES_TAG:-v1.10.0-namada-beta15-rc2}
build:
dockerfile: docker/hermes.Dockerfile
context: .
args:
- HERMES_TAG=${HERMES_TAG:-v1.10.0-namada-beta15-rc2}
hostname: hermes
profiles:
- hermes
entrypoint: ["sh", "/docker-entrypoint-scripts.d/start.sh"]
networks:
namada:
volumes:
- ./config/hermes/config-template.toml:/root/config-template.toml
- ./config/hermes/start.sh:/docker-entrypoint-scripts.d/start.sh
- ./masp-params:/root/.masp-params
- namada-shared:/root/.namada-shared
- hermes:/root/.hermes
volumes:
namada-1_data:
namada-2_data:
namada-3_data:
namada-chain-b_data:
namada-shared:
hermes:
networks:
namada: