twenty/render.yaml
Ruslan 77c88bda6e
Fix bug where "metadata" scheme was not created automatically (#1971) and (#1831) (#2018)
* Fix bug where "metadata" scheme was not created automatically (#1971)

* logging on

* testing on render

* render upadte

* added setup-db.ts and updated package.json
2023-10-14 11:48:55 +02:00

44 lines
980 B
YAML

services:
- 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: API_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
- 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
databases:
- name: twenty-db
plan: starter