Skip to content

Instantly share code, notes, and snippets.

@marckohlbrugge
Created October 31, 2022 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marckohlbrugge/c7c04a2dee54c182a90d2f44f7ece64e to your computer and use it in GitHub Desktop.
Save marckohlbrugge/c7c04a2dee54c182a90d2f44f7ece64e to your computer and use it in GitHub Desktop.
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