forked from subscan-explorer/subscan-essentials
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (50 loc) · 1.16 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
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://testnet.uniarts.network'
# 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: [ "python3","run.py","substrate" ]
volumes:
- ${PWD}/configs/telegram.json:/subscan/configs/telegram.json
networks:
- app_net
subscan-repaire:
environment:
<<: *app_base
image: subscan/api
command: ["/subscan/cmd/subscan","rbc" ]
networks:
- app_net
subscan-static:
build:
context: ./ui
environment:
NODE_ENV: 'production'
ports:
- '80:80'
networks:
- app_net
networks:
app_net:
external: true