mirror of
https://github.com/twentyhq/twenty.git
synced 2024-08-16 17:30:24 +03:00
Update render deploy configuration (#6167)
This commit is contained in:
parent
3e453054b7
commit
7aa903aa53
3
packages/twenty-server/scripts/render-worker.sh
Executable file
3
packages/twenty-server/scripts/render-worker.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
export PG_DATABASE_URL=postgres://twenty:twenty@$PG_DATABASE_HOST:$PG_DATABASE_PORT/default
|
||||
node dist/src/queue-worker/queue-worker
|
59
render.yaml
59
render.yaml
@ -1,29 +1,58 @@
|
||||
services:
|
||||
- type: web
|
||||
name: front
|
||||
runtime: image
|
||||
plan: free
|
||||
image:
|
||||
url: twentycrm/twenty-front:latest
|
||||
autoDeploy: false
|
||||
envVars:
|
||||
- key: REACT_APP_SERVER_BASE_URL
|
||||
fromService:
|
||||
name: server
|
||||
type: web
|
||||
envVarKey: RENDER_EXTERNAL_URL
|
||||
- type: web
|
||||
name: server
|
||||
runtime: image
|
||||
image:
|
||||
url: twentycrm/twenty-server:latest
|
||||
url: twentycrm/twenty:latest
|
||||
dockerCommand: "sh -c ./scripts/render-run.sh"
|
||||
autoDeploy: false
|
||||
plan: standard
|
||||
envVars:
|
||||
- key: FRONT_BASE_URL
|
||||
fromService:
|
||||
name: front
|
||||
name: server
|
||||
type: web
|
||||
envVarKey: RENDER_EXTERNAL_URL
|
||||
- key: SERVER_URL
|
||||
fromService:
|
||||
name: server
|
||||
type: web
|
||||
envVarKey: RENDER_EXTERNAL_URL
|
||||
- key: ACCESS_TOKEN_SECRET
|
||||
generateValue: true
|
||||
- key: LOGIN_TOKEN_SECRET
|
||||
generateValue: true
|
||||
- key: REFRESH_TOKEN_SECRET
|
||||
generateValue: true
|
||||
- key: FILE_TOKEN_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: ACCESS_TOKEN_SECRET
|
||||
|
Loading…
Reference in New Issue
Block a user