forked from subscan-explorer/subscan-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 946 Bytes
/
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
version: "2.4"
services:
subscan-api:
build: .
image: subscan/api
environment: &app_base
MYSQL_HOST: mysql
MYSQL_PASS: 'helloload'
# 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://rpc.polkadot.io'
# the types file used for the chain as:
# configs/source/{NETWORK_NODE}.json
NETWORK_NODE: 'polkadot'
WEB_HOST: 'http://subscan-api:4399'
DEPLOY_ENV: 'prod'
ports:
- '4399:4399'
networks:
- app_net
subscan-observer:
environment:
<<: *app_base
image: subscan/api
command: ["subscan","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