-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.hyperchain.yml
152 lines (143 loc) · 4.74 KB
/
docker-compose.hyperchain.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
services:
hc_mdw:
image: aeternity/ae_mdw
# platform: linux/x86_64
# image: aeternity/ae_mdw:local
# build:
# context: https://github.com/aeternity/ae_mdw.git#v1.90.0
# args:
# BUILDKIT_CONTEXT_KEEP_GIT_DIR: 1
# NODE_VERSION: 7.2.0
hostname: hc_mdw
networks:
default:
aliases:
- "hc-mdw.local.gd"
ports:
- "24000:24000" #MDW's default port
- "24001:24001" #MDW's websocket default port
- "23113:23113" #Node's default internal API port
- "23013:23013" #Node's default external API port
- "23014:23014" #Node's channels default websocket port
volumes:
- ${PWD}/node/hyperchain/aeternity.yaml:/home/aeternity/aeternity.yaml
- ${PWD}/node/hyperchain/accounts.json:/home/aeternity/node/local/rel/aeternity/data/aecore/.iris/hc_devnet_accounts.json
- ${PWD}/node/hyperchain/contracts.json:/home/aeternity/node/local/rel/aeternity/data/aecore/.iris/hc_devnet_contracts.json
- ae_hyperchain_node_db:/home/aeternity/node/local/rel/aeternity/data/mnesia
- ae_hyperchain_mdw_db:/home/aeternity/node/local/rel/aeternity/data/mdw.db
environment:
# workaround
TELEMETRY_STATSD_HOST: localhost
ENABLE_CONSOLE_LOG: "true"
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
PORT: 24000
WS_PORT: 24001
AE__HTTP__EXTERNAL__PORT: 23013
AE__HTTP__INTERNAL__PORT: 23113
AE__WEBSOCKET__CHANNEL__PORT: 23014
AE__HTTP__CORS__ALLOW_DOMAINS: '["*"]'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:24000/status"]
start_period: 20s
interval: 3s
timeout: 10s
retries: 5
depends_on:
mdw:
condition: service_healthy
hc_faucet:
platform: linux/x86_64
image: aeternity/aepp-faucet-nodejs
environment:
NODE_URL: http://hc_mdw:23013/
EXPLORER_URL: http://localhost:28020
FAUCET_ACCOUNT_PRIV_KEY: 1327C9AD3650EF196DDF156E8F53FA01294C68D57A1DF5363AAB03EC314C8A270CF6CB1DCC6B8FC14DEF3F66B834D881CFBB5C120934903DCD859FC05675429E
ports:
- "28030:5000"
depends_on:
hc_mdw:
condition: service_healthy
hc_explorer:
image: aeternity/mdw-frontend
ports:
- "28020:3000"
environment:
NUXT_APP_NODE_URL: http://hc-mdw.local.gd:23013/v3
NUXT_APP_MDW_URL: http://hc-mdw.local.gd:24000
NUXT_APP_NODE_WS: ws://localhost:24001/websocket
NUXT_APP_OTHER_DEPLOYMENTS: ""
NUXT_APP_NETWORK_NAME: HYPERCHAIN LOCAL
NUXT_APP_ENABLE_FAUCET: ""
NUXT_APP_FAUCET_API: http://localhost:28030/account
depends_on:
hc_mdw:
condition: service_healthy
hc_base_backend:
image: aeternity/aepp-base-backend
environment:
VAPID_SUBJECT: 'mailto: <[email protected]>'
VAPID_PUBLIC_KEY: 'BKdMuWCMzVPLTY-ClCNBanQ5Thgji_VMOQKsmTGlTs5DqVyXU4aFv2eHUs2YwK3XY-RS9HdjkIRJK3E20n251Rw'
VAPID_PRIVATE_KEY: 'LzjNvVH109jxcAGDMe59zLM-gNaeo9QypJl82Thtmts'
ports:
- "28011:8079"
hc_base:
image: aeternitybot/aepp-base:develop
platform: linux/x86_64
environment:
VUE_APP_NETWORK_NAME: Hyperchain Local
VUE_APP_NODE_URL: http://localhost:23013
VUE_APP_MIDDLEWARE_URL: http://localhost:24000
VUE_APP_EXPLORER_URL: http://localhost:28020
VUE_APP_COMPILER_URL: http://localhost:8040
VUE_APP_BACKEND_URL: http://localhost:28011
ports:
- "28010:80"
depends_on:
hc_base_backend:
condition: service_started
hc_mdw:
condition: service_healthy
ui:
platform: linux/x86_64
image: aeternity/aepp-hyperchain:master
environment:
AE_FAUCET_URL: "http://localhost:28030/"
AE_WALLET_URL: "http://localhost:28010/"
AE_NODE_URL: "http://hc-mdw.local.gd:23013/"
STAKING_CONTRACT: "ct_LRbi65kmLtE7YMkG6mvG5TxAXTsPJDZjAtsPuaXtRyPA7gnfJ"
HC_ELECTION_CONTRACT: "ct_t7ESuRFvGdYHwM6KJhKbSnFUJQhnB9aCFed1RWR89ShNDgwWA"
ports:
- "28040:3000"
depends_on:
hc_mdw:
condition: service_healthy
hc_static:
image: nginx:1.13.8
ports:
- 8080:80
volumes:
- ${PWD}/nginx/html/hyperchain:/usr/share/nginx/html
healthcheck:
test: ["CMD", "service", "nginx", "status"]
start_period: 3s
interval: 3s
timeout: 1s
retries: 5
depends_on:
mdw:
condition: service_healthy
base:
condition: service_started
faucet:
condition: service_started
explorer:
condition: service_started
hc_instructions:
image: alpine
command: echo "!!!OPEN http://localhost:8080 FOR MORE INFROMATION ABOUT HYPERCHAIN!!!"
depends_on:
static:
condition: service_healthy
volumes:
ae_hyperchain_node_db:
ae_hyperchain_mdw_db: