This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose.polkadot-full.yml
147 lines (134 loc) · 3.64 KB
/
docker-compose.polkadot-full.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3.2'
services:
explorer-api:
build: explorer-api/.
image: polkascan/pre-explorer-api:latest
hostname: explorer-api
volumes:
- './explorer-api:/usr/src/app'
command: ./start.sh
environment:
- PYTHONPATH=/usr/src/app
- ENVIRONMENT=prod
- DB_HOST=mysql
- DB_PORT=3306
- DB_USERNAME=root
- DB_PASSWORD=root
- DB_NAME=polkascan
- SUBSTRATE_RPC_URL=http://substrate-node:9933/
- SUBSTRATE_ADDRESS_TYPE=0
- TYPE_REGISTRY=polkadot
- SUBSTRATE_METADATA_VERSION=9
- SUBSTRATE_STORAGE_BALANCE=Account
- SUBSTRATE_STORAGE_INDICES=Accounts
depends_on:
- mysql
- substrate-node
harvester-api:
build: harvester/.
image: polkascan/pre-harvester:latest
hostname: harvester-api
volumes:
- './harvester:/usr/src/app'
command: ./start.sh
ports:
- 8001:8000
environment: &env
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
- PYTHONPATH=/usr/src/app:/usr/src/app/py-substrate-interface/:/usr/src/app/py-scale-codec/
- ENVIRONMENT=prod
- DB_HOST=mysql
- DB_PORT=3306
- DB_USERNAME=root
- DB_PASSWORD=root
- DB_NAME=polkascan
- SUBSTRATE_RPC_URL=http://substrate-node:9933/
- TYPE_REGISTRY=polkadot
- SUBSTRATE_ADDRESS_TYPE=0
- SUBSTRATE_METADATA_VERSION=9
- NEW_SESSION_EVENT_HANDLER=True
- SUBSTRATE_STORAGE_BALANCE=Account
- SUBSTRATE_STORAGE_INDICES=Accounts
- FINALIZATION_ONLY=1
depends_on:
- redis
- mysql
- substrate-node
harvester-worker:
build: harvester/.
image: polkascan/pre-harvester:latest
volumes:
- './harvester:/usr/src/app'
command: celery -A app.tasks worker --loglevel=INFO
environment: *env
depends_on:
- redis
- mysql
harvester-beat:
build: harvester/.
image: polkascan/pre-harvester:latest
volumes:
- './harvester:/usr/src/app'
- '/usr/src/app/data'
command: celery -A app.tasks beat --loglevel=INFO --schedule="data/celerybeat-schedule" --pidfile="data/celerybeat.pid"
environment: *env
depends_on:
- redis
harvester-monitor:
build: harvester/.
image: polkascan/pre-harvester:latest
environment: *env
ports:
- '5555:5555'
command: flower -A app.tasks --port=5555 --broker=redis://redis:6379/0
depends_on:
- redis
redis:
image: redis:3.2.11
hostname: redis
mysql:
image: mysql:8.0.23
hostname: mysql
volumes:
- 'db-data:/var/lib/mysql'
ports:
- '33061:3306'
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=polkascan
substrate-node:
image: polkasource/substrate-client:polkadot-latest
hostname: substrate-node
volumes:
- 'substrate-data:/data'
ports:
- '30333:30333'
- '9933:9933'
- '9944:9944'
command: --chain=polkadot --db-cache=2048 --wasm-execution=Compiled --rpc-external --rpc-cors=all --ws-external --rpc-methods=Unsafe --pruning=archive
explorer-gui:
image: polkascan/pre-explorer-gui:latest
build:
context: explorer-gui/.
args:
NETWORK_NAME: Polkadot CC1
NETWORK_ID: polkadot-cc1
NETWORK_TYPE: pre
CHAIN_TYPE: relay
NETWORK_TOKEN_SYMBOL: DOT
NETWORK_TOKEN_DECIMALS: 12
NETWORK_COLOR_CODE: e6007a
API_URL: http://127.0.0.1:8080/api/v1
ports:
- '8080:80'
depends_on:
- harvester-api
- explorer-api
polkadot-ui:
image: polkasource/substrate-ui:polkadot-latest
ports:
- '8081:80'
volumes:
db-data:
substrate-data: