mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 12:02:10 +03:00
b028d9fd2a
* add render.yaml * Clean environment variables --------- Co-authored-by: Charles Bochet <charles@twenty.com>
43 lines
931 B
YAML
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
|