-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (73 loc) · 2.02 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
version: "3"
services:
db:
image: mysql
hostname: mysql
environment:
MYSQL_ROOT_PASSWORD: aXMHcwPm4fMJ
MYSQL_DATABASE: shearscan_explorer
ports:
- "33061:3306"
redis:
image: "redis:latest"
polling:
build:
context: .
dockerfile: ./docker/polling/Dockerfile
image: polkascan/explorer-polling-beta
command: python polling.py
depends_on:
- redis
- db
- api
environment:
- DB_USERNAME=shearscan_root
- DB_NAME=shearscan_explorer
- DB_HOST=mysql
- DB_PORT=3306
- DB_PASSWORD=aXMHcwPm4fMJ
- BROADCAST_URI=redis://redis:6379
- CHAIN_ID=polkadot
- SENTRY_PROJECT_NAME=explorer-polling-v2
- SENTRY_SERVER_NAME=polkadapt
- SENTRY_DSN=
api:
build:
context: .
dockerfile: ./docker/api/Dockerfile
image: ${API_DOCKER_IMAGE:-polkascan/explorer-api-beta}
command: ${API_DOCKER_COMMAND:-bash -c "/usr/src/start-api.sh"}
ports:
- "8000:8000"
depends_on:
- redis
- db
# # Note: enable when running with Signoz telemetry
# networks:
# - default
# - clickhouse-setup_default
environment:
- DB_USERNAME=shearscan_root
- DB_NAME=shearscan_explorer
- DB_HOST=mysql
- DB_PORT=3306
- BLOCK_LIMIT_COUNT=500000
- HTTP_MOUNT=/graphql/
- WS_MOUNT=/graphql-ws/
- DB_HARVESTER_NAME=shearscan_db
- DB_PASSWORD=aXMHcwPm4fMJ
- 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://shearscan_root:aXMHcwPm4fMJ@81.181.255.41:3306/shearscan_explorer?charset=utf8mb4
- CHAIN_ID=polkadot
- SENTRY_PROJECT_NAME=explorer-api-v2
- SENTRY_SERVER_NAME=polkadapt
- SENTRY_DSN=
##Note: enable when running with Signoz telemetry
#networks:
# clickhouse-setup_default: # external signoz created network
# external: true