-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
47 lines (45 loc) · 1.31 KB
/
render.yaml
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: chain-reg-api-server
env: rust
repo: https://github.com/system-zero-labs/chain-registry-api
plan: free
region: oregon
branch: main
numInstances: 1
# TODO: runs on port 10000 such as chainregistry.xyz:10000/v1/mainnet/chains
# healthCheckPath: /v1/mainnet/chains
# scaling:
# minInstances: 1
# maxInstances: 1
buildCommand: cargo build --release
startCommand: cargo run --release serve
domains:
- chainregistry.xyz
envVars:
- key: PORT
value: "10000"
- key: DATABASE_URL
fromDatabase:
name: chain-reg-api-db
property: connectionString
- type: cron
name: chain-reg-api-hydrate
env: rust
schedule: "*/5 * * * *"
buildCommand: cargo build --release
# TODO: eventually refactor liveness to a background worker
startCommand: cargo run --release hydrate && cargo run --release liveness
repo: https://github.com/system-zero-labs/chain-registry-api
envVars:
- key: DATABASE_URL
fromDatabase:
name: chain-reg-api-db
property: connectionString
databases:
- name: chain-reg-api-db
plan: starter
databaseName: chain_reg_prod
region: oregon
user: chain_reg_admin
ipAllowList: [] # only allow internal connections