twenty/render.yaml
ZiaCodes 57d9b8e8b4
feat: generate secret function and replaced few instances (#7810)
This PR fixes #4588

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-30 12:07:11 +01:00

86 lines
1.8 KiB
YAML

services:
- type: web
name: server
runtime: image
image:
url: twentycrm/twenty:latest
dockerCommand: "sh -c ./scripts/render-run.sh"
autoDeploy: false
plan: standard
envVars:
- key: FRONT_BASE_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: SERVER_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: APP_SECRET
generateValue: true
- key: PG_DATABASE_HOST
fromService:
name: twenty_postgres
type: pserv
property: host
- key: PG_DATABASE_PORT
fromService:
name: twenty_postgres
type: pserv
property: port
- type: worker
name: worker
runtime: image
image:
url: twentycrm/twenty:latest
dockerCommand: "sh -c ./scripts/render-worker.sh"
autoDeploy: false
plan: standard
envVars:
- key: FRONT_BASE_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: SERVER_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: APP_SECRET
generateValue: true
- key: PG_DATABASE_HOST
fromService:
name: twenty_postgres
type: pserv
property: host
- key: PG_DATABASE_PORT
fromService:
name: twenty_postgres
type: pserv
property: port
disk:
name: twenty-disk
mountPath: /.local-storage
sizeGB: 5
- type: pserv
name: twenty_postgres
plan: starter
runtime: image
image:
url: twentycrm/twenty-postgres:latest
autoDeploy: false
disk:
name: data
mountPath: /var/lib/postgresql/data
sizeGB: 10
envVars:
- key: POSTGRES_USER
value: postgres
- key: POSTGRES_PASSWORD
value: postgres
- key: POSTGRES_DB
value: default