-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
47 lines (46 loc) · 1.28 KB
/
render.yaml
File metadata and controls
47 lines (46 loc) · 1.28 KB
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
services:
- type: web
name: whale-backend
env: python
region: oregon
plan: free
buildCommand: pip install -r requirements.txt
startCommand: python app.py --port $PORT
healthCheckPath: /health
autoDeploy: true
envVars:
- key: SUPABASE_URL
sync: false
- key: SUPABASE_ANON_KEY
sync: false
- key: SUPABASE_SERVICE_ROLE_KEY
sync: false
- key: ETH_RPC_URL
sync: false
- key: ETHERSCAN_API_KEY
sync: false
- key: ZEROX_SWAP_API_KEY
sync: false
- key: ADMIN_API_TOKEN
sync: false
- key: DEV_DEBUG
value: "0"
- type: cron
name: whale-refresh-cron
env: docker
schedule: "10 0 * * *" # 00:10 UTC daily
plan: free
dockerCommand: |
bash -lc 'curl -sS -X POST \
-H "Authorization: Bearer $ADMIN_API_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"top\":100,\"hours\":720,\"price_days\":90,\"metrics_days\":90,\"activity_days\":90,\"time_budget\":240}" \
https://$BACKEND_HOST/admin/refresh && echo "\n[cron] refresh done"'
envVars:
- key: ADMIN_API_TOKEN
sync: false
- key: BACKEND_HOST
fromService:
type: web
name: whale-backend
property: host