-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
44 lines (38 loc) · 1.03 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
version: '3.2'
services:
harvester:
build: .
image: polkascan/harvester
restart: unless-stopped
entrypoint: /usr/src/start.sh
ports:
- '9620:9616'
environment:
- DB_CONNECTION=mysql+pymysql://root:root@mysql:3306/polkascan?charset=utf8mb4
- SUBSTRATE_RPC_URL=ws://substrate-node:9944
# - SUBSTRATE_RPC_URL=ws://host.docker.internal:9944
- NODE_TYPE=archive
- SUBSTRATE_SS58_FORMAT=42
depends_on:
- mysql
- substrate-node
substrate-node:
image: parity/substrate:latest
volumes:
- 'substrate-node:/substrate'
ports:
- '9944:9944'
- '9933:9933'
command: --dev --base-path /substrate/db --ws-external --rpc-cors=all --rpc-external --rpc-methods=Unsafe --no-telemetry --no-prometheus --pruning=archive
mysql:
image: mysql:latest
volumes:
- 'mysql-data:/var/lib/mysql'
ports:
- '33061:3306'
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=polkascan
volumes:
substrate-node:
mysql-data: