Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
35 lines (35 loc) · 1.51 KB
/
Copy pathrender.yaml
File metadata and controls
35 lines (35 loc) · 1.51 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
# Render Blueprint for the Mycelium off-chain indexer.
# In Render: New → Blueprint → point at this repo. Render reads this file and
# creates the service below. Set the one secret (FIREBASE_CREDENTIALS_JSON) when
# prompted (sync: false keeps it out of git).
services:
- type: web
name: mycelium-indexer
runtime: docker
dockerfilePath: ./indexer/Dockerfile
dockerContext: . # build from repo root (needs sdk/ + cli/)
plan: free
healthCheckPath: /healthz
autoDeploy: true
envVars:
# Free tier = 512MB. An always-on ingest worker OOM-kills the instance, so
# keep it OFF here and refresh on demand via POST /admin/ingest (point a
# free external cron at it). Set to "1" only on a paid instance with RAM.
- key: RUN_INDEXER_WORKER
value: "0"
# Shared secret for POST /admin/ingest (sent as X-Ingest-Token). Set a
# random value in the dashboard.
- key: INGEST_TOKEN
sync: false
- key: MYCELIUM_NETWORK
value: testnet
# The deployed JobBoard (so /jobs + job events index). Registry address is
# the SDK default, no env needed.
- key: MYCELIUM_BOARD_ADDRESS
value: CAIGNIJBUA4GKKJBIO27JOAELZQ4KA7AYMB2F5C3W2D3DGQANZZCJGEH
# This project's Firestore db id is `default` (not the legacy `(default)`).
- key: FIRESTORE_DATABASE_ID
value: default
# Firebase service-account JSON (whole file contents). Set in the dashboard.
- key: FIREBASE_CREDENTIALS_JSON
sync: false