forked from polkascan/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
115 lines (105 loc) · 2.78 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3.2'
services:
harvester:
build: harvester/.
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
- INSTALLED_ETL_DATABASES=polkascan_explorer
depends_on:
- mysql
- substrate-node
polling:
build:
context: explorer-api/.
dockerfile: ./docker/polling/Dockerfile
image: polkascan/explorer-polling
restart: unless-stopped
command: python polling.py
depends_on:
- redis
- mysql
environment:
- DB_USERNAME=root
- DB_NAME=polkascan_explorer
- DB_HOST=mysql
- DB_PORT=3306
- DB_PASSWORD=root
- BROADCAST_URI=redis://redis:6379
- CHAIN_ID=polkadot
- SENTRY_PROJECT_NAME=explorer-polling-v2
- SENTRY_SERVER_NAME=polkadapt
- SENTRY_DSN=
- BLOCK_LIMIT_COUNT=500000
api:
build:
context: explorer-api/.
dockerfile: ./docker/api/Dockerfile
image: polkascan/explorer-api
restart: unless-stopped
command: bash -c "/usr/src/start-api.sh"
ports:
- "8000:8000"
depends_on:
- redis
- mysql
environment:
- DB_USERNAME=root
- DB_NAME=polkascan_explorer
- DB_HOST=mysql
- DB_PORT=3306
- DB_PASSWORD=root
- DB_HARVESTER_NAME=polkascan
- DOMAIN=localhost
- SERVER_ADDR=localhost
- SERVER_PORT=8000
- WEBSOCKET_URI=ws://localhost:8000
- BACKEND_CORS_ORIGINS=[]
- BROADCAST_URI=redis://redis:6379
- API_SQLA_URI=mysql+pymysql://root:root@mysql:3306/polkascan_explorer?charset=utf8mb4
- CHAIN_ID=polkadot
- SENTRY_PROJECT_NAME=explorer-api-v2
- SENTRY_SERVER_NAME=polkadapt
- SENTRY_DSN=
- BLOCK_LIMIT_COUNT=500000
gui:
build:
context: explorer-ui/.
image: polkascan/explorer-ui
restart: unless-stopped
ports:
- "8080:80"
depends_on:
- api
- substrate-node
substrate-node:
image: parity/substrate:latest
restart: unless-stopped
volumes:
- 'substrate-node:/substrate'
ports:
- '9944:9944'
- '9933:9933'
command: --dev --base-path /substrate/db --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
redis:
image: "redis:latest"
volumes:
substrate-node:
mysql-data: