mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-15 08:27:42 +00:00
try fixing more
This commit is contained in:
parent
4ae02139e3
commit
32209d3fee
1 changed files with 163 additions and 163 deletions
326
render.yaml
326
render.yaml
|
@ -1,178 +1,178 @@
|
||||||
databases:
|
databases:
|
||||||
- name: srv.postgres
|
- name: srv.postgres
|
||||||
plan: pro
|
plan: pro
|
||||||
user: apollo
|
user: apollo
|
||||||
databaseName: apollo
|
databaseName: apollo
|
||||||
postgresMajorVersion: 14
|
postgresMajorVersion: 14
|
||||||
ipAllowList: [] # only allow internal connections
|
ipAllowList: [] # only allow internal connections
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Redis
|
# Redis
|
||||||
- type: redis
|
- type: redis
|
||||||
name: srv.redis
|
name: srv.redis
|
||||||
plan: pro
|
plan: pro
|
||||||
maxmemoryPolicy: noeviction
|
maxmemoryPolicy: noeviction
|
||||||
ipAllowList: [] # only allow internal connections
|
ipAllowList: [] # only allow internal connections
|
||||||
|
|
||||||
# PGBouncer
|
# PGBouncer
|
||||||
- type: worker
|
- type: worker
|
||||||
name: srv.pgbouncer
|
name: srv.pgbouncer
|
||||||
env: docker
|
env: docker
|
||||||
plan: standard
|
plan: standard
|
||||||
repo: https://github.com/renderinc/docker-pgbouncer.git
|
repo: https://github.com/renderinc/docker-pgbouncer.git
|
||||||
envVars:
|
envVars:
|
||||||
- key: ADMIN_USERS
|
- key: ADMIN_USERS
|
||||||
value: postgres,apollo
|
value: postgres,apollo
|
||||||
- key: DATABASE_URL
|
- key: DATABASE_URL
|
||||||
fromDatabase:
|
fromDatabase:
|
||||||
name: srv.postgres
|
name: srv.postgres
|
||||||
property: connectionString
|
property: connectionString
|
||||||
- key: DEFAULT_POOL_SIZE
|
- key: DEFAULT_POOL_SIZE
|
||||||
value: 128
|
value: 128
|
||||||
- key: MAX_CLIENT_CONN
|
- key: MAX_CLIENT_CONN
|
||||||
value: 1024
|
value: 1024
|
||||||
- key: MIN_POOL_SIZE
|
- key: MIN_POOL_SIZE
|
||||||
value: 8
|
value: 8
|
||||||
- key: POOL_MODE
|
- key: POOL_MODE
|
||||||
value: transaction
|
value: transaction
|
||||||
- key: RESERVE_POOL_TIMEOUT
|
- key: RESERVE_POOL_TIMEOUT
|
||||||
value: 1
|
value: 1
|
||||||
- key: SERVER_RESET_QUERY
|
- key: SERVER_RESET_QUERY
|
||||||
value: DISCARD ALL
|
value: DISCARD ALL
|
||||||
|
|
||||||
# StatsD
|
# StatsD
|
||||||
- type: worker
|
- type: worker
|
||||||
name: srv.statsd
|
name: srv.statsd
|
||||||
env: docker
|
env: docker
|
||||||
plan: standard
|
plan: standard
|
||||||
repo: https://github.com/andremedeiros/render-datadog.git
|
repo: https://github.com/andremedeiros/render-datadog.git
|
||||||
envVars:
|
envVars:
|
||||||
- key: DD_API_KEY
|
- key: DD_API_KEY
|
||||||
sync: false
|
sync: false
|
||||||
- key: DD_APM_ENABLED
|
- key: DD_APM_ENABLED
|
||||||
value: false
|
value: false
|
||||||
- key: DD_LOG_LEVEL
|
- key: DD_LOG_LEVEL
|
||||||
value: ERROR
|
value: ERROR
|
||||||
|
|
||||||
# API
|
# API
|
||||||
- type: web
|
- type: web
|
||||||
name: web.api
|
name: web.api
|
||||||
env: go
|
env: go
|
||||||
plan: standard
|
plan: standard
|
||||||
healthCheckPath: /v1/health
|
healthCheckPath: /v1/health
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 1
|
||||||
maxInstances: 3
|
maxInstances: 3
|
||||||
targetCPUPercent: 60
|
targetCPUPercent: 60
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||||
startCommand: panic-monitor ./apollo api
|
startCommand: panic-monitor ./apollo api
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
|
|
||||||
# Notifications
|
# Notifications
|
||||||
- type: worker
|
- type: worker
|
||||||
name: worker.notifications
|
name: worker.notifications
|
||||||
plan: starter plus
|
plan: starter plus
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 1
|
||||||
maxInstances: 10
|
maxInstances: 10
|
||||||
targetCPUPercent: 75
|
targetCPUPercent: 75
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||||
startCommand: panic-monitor ./apollo worker --queue notifications --multiplier 64
|
startCommand: panic-monitor ./apollo worker --queue notifications --multiplier 64
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
|
|
||||||
# Stuck Notifications Checker
|
# Stuck Notifications Checker
|
||||||
- type: worker
|
- type: worker
|
||||||
name: worker.notifications.stuck
|
name: worker.notifications.stuck
|
||||||
plan: starter plus
|
plan: starter plus
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 1
|
||||||
maxInstances: 10
|
maxInstances: 10
|
||||||
targetCPUPercent: 75
|
targetCPUPercent: 75
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||||
startCommand: panic-monitor ./apollo worker --queue stuck-notifications --multiplier 64
|
startCommand: panic-monitor ./apollo worker --queue stuck-notifications --multiplier 64
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
|
|
||||||
# Scheduler
|
# Scheduler
|
||||||
- type: worker
|
- type: worker
|
||||||
name: app.scheduler
|
name: app.scheduler
|
||||||
plan: starter
|
plan: starter
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||||
startCommand: panic-monitor ./apollo scheduler
|
startCommand: panic-monitor ./apollo scheduler
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
|
|
||||||
# User Watcher
|
# User Watcher
|
||||||
- type: worker
|
- type: worker
|
||||||
name: worker.watcher.users
|
name: worker.watcher.users
|
||||||
plan: starter
|
plan: starter
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||||
startCommand: panic-monitor ./apollo worker --queue users --multiplier 16
|
startCommand: panic-monitor ./apollo worker --queue users --multiplier 16
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
|
|
||||||
# Subreddit Watcher
|
# Subreddit Watcher
|
||||||
- type: worker
|
- type: worker
|
||||||
name: worker.watcher.subreddits
|
name: worker.watcher.subreddits
|
||||||
plan: starter plus
|
plan: starter plus
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 1
|
||||||
maxInstances: 10
|
maxInstances: 10
|
||||||
targetCPUPercent: 75
|
targetCPUPercent: 75
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||||
startCommand: panic-monitor ./apollo worker --queue subreddits --multiplier 64
|
startCommand: panic-monitor ./apollo worker --queue subreddits --multiplier 64
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
|
|
||||||
# Trending Posts Watcher
|
# Trending Posts Watcher
|
||||||
- type: worker
|
- type: worker
|
||||||
name: worker.watcher.trending
|
name: worker.watcher.trending
|
||||||
plan: starter plus
|
plan: starter plus
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 1
|
||||||
maxInstances: 10
|
maxInstances: 10
|
||||||
targetCPUPercent: 75
|
targetCPUPercent: 75
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||||
startCommand: panic-monitor ./apollo worker --queue trending --multiplier 64
|
startCommand: panic-monitor ./apollo worker --queue trending --multiplier 64
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
|
|
||||||
envVarGroups:
|
envVarGroups:
|
||||||
# Environmnet
|
# Environmnet
|
||||||
- name: env-settings
|
- name: env-settings
|
||||||
envVars:
|
envVars:
|
||||||
- key: APPLE_KEY_ID
|
- key: APPLE_KEY_ID
|
||||||
sync: false
|
sync: false
|
||||||
- key: APPLE_KEY_PATH
|
- key: APPLE_KEY_PATH
|
||||||
value: /etc/secrets/apple.p8
|
value: /etc/secrets/apple.p8
|
||||||
- key: APPLE_TEAM_ID
|
- key: APPLE_TEAM_ID
|
||||||
sync: false
|
sync: false
|
||||||
- key: BUGSNAG_API_KEY
|
- key: BUGSNAG_API_KEY
|
||||||
sync: false
|
sync: false
|
||||||
- key: DATABASE_CONNECTION_POOL_URL
|
- key: DATABASE_CONNECTION_POOL_URL
|
||||||
sync: false # TODO
|
sync: false # TODO
|
||||||
- key: DD_API_KEY
|
- key: DD_API_KEY
|
||||||
sync: false
|
sync: false
|
||||||
- key: ENV
|
- key: ENV
|
||||||
sync: false
|
sync: false
|
||||||
- key: REDDIT_CLIENT_ID
|
- key: REDDIT_CLIENT_ID
|
||||||
sync: false
|
sync: false
|
||||||
- key: REDIS_URL
|
- key: REDIS_URL
|
||||||
fromService:
|
fromService:
|
||||||
type: redis
|
type: redis
|
||||||
name: srv.redis
|
name: srv.redis
|
||||||
property: connectionString
|
property: connectionString
|
||||||
- key: SMTP2GO_API_KEY
|
- key: SMTP2GO_API_KEY
|
||||||
sync: false
|
sync: false
|
||||||
- key: STATSD_URL
|
- key: STATSD_URL
|
||||||
sync: false
|
sync: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue