twenty/render.yaml
Félix Malfait b028d9fd2a
Add deploy buttons and clean environment variables (#974)
* add render.yaml

* Clean environment variables



---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-07-31 14:36:04 -07:00

43 lines
931 B
YAML

services:
- type: web
name: front
env: docker
dockerfilePath: ./infra/prod/front/Dockerfile
autoDeploy: false
envVars:
- key: REACT_APP_SERVER_BASE_URL
fromService:
name: server
type: web
envVarKey: RENDER_EXTERNAL_URL
- type: web
name: server
env: docker
dockerfilePath: ./infra/prod/server/Dockerfile
dockerCommand: "sh -c yarn prisma:migrate && node dist/src/main"
autoDeploy: false
envVars:
- key: ACCESS_TOKEN_SECRET
generateValue: true
- key: LOGIN_TOKEN_SECRET
generateValue: true
- key: REFRESH_TOKEN_SECRET
generateValue: true
- key: PG_DATABASE_URL
fromDatabase:
name: twenty-db
property: connectionString
- key: FRONT_BASE_URL
fromService:
name: front
type: web
envVarKey: RENDER_EXTERNAL_URL
disk:
name: twenty-disk
mountPath: /.local-storage
sizeGB: 5
databases:
- name: twenty-db
plan: starter