forked from subscan-explorer/subscan-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.01 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
version: "2.4"
services:
subscan-api:
build: .
image: subscan/api
environment: &app_base
MYSQL_HOST: mysql
MYSQL_PASS: 'helloload'
MYSQL_USER: 'root'
# Name of the database subscan will connect to and use
# this db must exist
MYSQL_DB: 'subscan'
REDIS_ADDR: redis:6379
CHAIN_WS_ENDPOINT: 'wss://scschain-rpc.novax.dev:2083'
# the types file used for the chain as:
# configs/source/{NETWORK_NODE}.json
# 需要找到适配以太坊的json文件
NETWORK_NODE: 'tscs'
WEB_HOST: 'http://subscan-api:4399'
DEPLOY_ENV: 'prod'
ports:
- '4399:4399'
networks:
- app_net
subscan-observer:
environment:
<<: *app_base
image: subscan/api
command: ["start","substrate"]
networks:
- app_net
# subscan-static:
# build:
# context: ./ui
# environment:
# NODE_ENV: 'production'
# ports:
# - '80:80'
# networks:
# - app_net
networks:
app_net:
external: true