This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
forked from polkascan/polkascan-os
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-staging.yml
140 lines (133 loc) · 3.86 KB
/
docker-compose-staging.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
version: '3'
services:
explorer-api:
image: 414255671868.dkr.ecr.us-east-2.amazonaws.com/tooling-explorer-api:latest
hostname: explorer-api
links:
- redis
logging:
driver: awslogs
options:
awslogs-group: staging-explorer
awslogs-region: us-east-2
awslogs-stream-prefix: explorer-api
volumes:
- '/usr/src/app'
command: ./start.sh
environment:
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
- PYTHONPATH=/usr/src/app
- TYPE_REGISTRY=polymesh
- SUBSTRATE_ADDRESS_TYPE=42
- ENVIRONMENT=${ENVIRONMENT}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- SUBSTRATE_RPC_URL=${SUBSTRATE_RPC_URL}
harvester-api:
image: 414255671868.dkr.ecr.us-east-2.amazonaws.com/tooling-harvester:latest
hostname: harvester-api
volumes:
- "/usr/src/app"
command: ./start.sh
links:
- redis
logging:
driver: awslogs
options:
awslogs-group: staging-harvester
awslogs-region: us-east-2
awslogs-stream-prefix: harvester-api
environment: &env
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
- PYTHONPATH=/usr/src/app
- TYPE_REGISTRY=polymesh
- SUBSTRATE_ADDRESS_TYPE=42
- SUBSTRATE_STORAGE_INDICES=Accounts
- NEW_SESSION_EVENT_HANDLER=True
- ENVIRONMENT=${ENVIRONMENT}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- SUBSTRATE_RPC_URL=${SUBSTRATE_RPC_URL}
harvester-worker:
image: 414255671868.dkr.ecr.us-east-2.amazonaws.com/tooling-harvester:latest
volumes:
- "/usr/src/app"
command: celery -A app.tasks worker --concurrency=8 --loglevel=INFO
links:
- redis
logging:
driver: awslogs
options:
awslogs-group: staging-harvester
awslogs-region: us-east-2
awslogs-stream-prefix: worker
environment: *env
harvester-beat:
image: 414255671868.dkr.ecr.us-east-2.amazonaws.com/tooling-harvester:latest
volumes:
- "/usr/src/app"
- "/usr/src/app/data"
links:
- redis
command: celery -A app.tasks beat --loglevel=INFO --schedule="data/celerybeat-schedule" --pidfile="data/celerybeat.pid"
logging:
driver: awslogs
options:
awslogs-group: staging-harvester
awslogs-region: us-east-2
awslogs-stream-prefix: beat
environment: *env
harvester-monitor:
image: 414255671868.dkr.ecr.us-east-2.amazonaws.com/tooling-harvester:latest
ports:
- "5555:5555"
links:
- redis
command: flower -A app.tasks --port=5555 --broker=redis://redis:6379/0
logging:
driver: awslogs
options:
awslogs-group: staging-harvester
awslogs-region: us-east-2
awslogs-stream-prefix: monitor
redis:
image: redis:3.2.11
ports:
- 6379:6379
hostname: redis
logging:
driver: awslogs
options:
awslogs-group: staging-explorer
awslogs-region: us-east-2
awslogs-stream-prefix: redis
explorer-gui:
image: 414255671868.dkr.ecr.us-east-2.amazonaws.com/tooling-explorer-gui:latest
ports:
- '80:80'
links:
- explorer-api
- harvester-api
environment:
- NETWORK_NAME=${NETWORK_NAME}
- NETWORK_ID=${NETWORK_ID}
- NETWORK_TYPE=pre
- CHAIN_TYPE=relay
- NETWORK_TOKEN_SYMBOL=POLYX
- NETWORK_TOKEN_DECIMALS=6
- NETWORK_COLOR_CODE=d32e79
- API_URL=http://127.0.0.1:80/api/v1
logging:
driver: awslogs
options:
awslogs-group: staging-explorer
awslogs-region: us-east-2
awslogs-stream-prefix: explorer-gui