Skip to content

Instantly share code, notes, and snippets.

@marckohlbrugge
Created Oct 31, 2022
Embed
What would you like to do?
BetaList's render.yaml
services:
- type: web
name: betalist
env: ruby
numInstances: 1
buildCommand: DB_MIGRATE=true bin/build
startCommand: bin/start
autoDeploy: true
domains:
- betalist.com
- api.betalist.com
- guides.betalist.com
- interviews.betalist.com
envVars:
- fromGroup: betalist
- key: DATABASE_URL
fromDatabase:
name: betalist
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: betalist-redis
property: connectionString
- key: REDIS_CACHE_URL
fromService:
type: redis
name: betalist-redis-cache
property: connectionString
- type: worker
name: betalist-worker
env: ruby
buildCommand: bin/build
startCommand: bin/start-worker
envVars:
- fromGroup: betalist
- key: DATABASE_URL
fromDatabase:
name: betalist
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: betalist-redis
property: connectionString
- key: REDIS_CACHE_URL
fromService:
type: redis
name: betalist-redis-cache
property: connectionString
- type: redis
name: betalist-redis
maxmemoryPolicy: noeviction
ipAllowList:
- source: 0.0.0.0/0
description: everywhere
- type: redis
name: betalist-redis-cache
maxmemoryPolicy: allkeys-lfu
ipAllowList:
- source: 0.0.0.0/0
description: everywhere
databases:
- name: betalist
postgresMajorVersion: 14
envVarGroups:
- name: betalist
envVars:
- key: RACK_ENV
value: production
- key: RAILS_ENV
value: production
- key: NODE_ENV
value: production
- key: RAILS_MASTER_KEY
sync: false
- key: DB_POOL
sync: false
- key: ENABLE_ANALYTICS
sync: false
- key: HOST
sync: false
- key: MAX_THREADS
sync: false
- key: WEB_CONCURRENCY
sync: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment