Skip to content

Commit 26ca559

Browse files
authored
Set the default mysql database to subscan (#132)
* set database to subscan to match what the api is looking for * reset readme * comment some confusing vars
1 parent 060f922 commit 26ca559

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docker-compose.db.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ services:
55
image: mysql:5.7
66
restart: always
77
environment:
8-
MYSQL_ROOT_PASSWORD: 'helloload'
8+
# Name of the db created on start up
9+
MYSQL_DATABASE: subscan
10+
MYSQL_ROOT_PASSWORD: helloload
911
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
1012
ports:
1113
- '3306:3306'

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ services:
77
environment: &app_base
88
MYSQL_HOST: mysql
99
MYSQL_PASS: 'helloload'
10+
# Name of the database subscan will connect to and use
11+
# this db must exist
1012
MYSQL_DB: 'subscan'
1113
REDIS_ADDR: redis:6379
1214
CHAIN_WS_ENDPOINT: 'wss://rpc.polkadot.io'
15+
# the types file used for the chain as:
16+
# configs/source/{NETWORK_NODE}.json
1317
NETWORK_NODE: 'polkadot'
1418
WEB_HOST: 'http://subscan-api:4399'
1519
DEPLOY_ENV: 'prod'

0 commit comments

Comments
 (0)