Merge pull request #791 from automatisch/docs/render-deployment
docs: render deployment
This commit is contained in:
@@ -74,6 +74,18 @@ REDIS_TLS=
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
## Render
|
||||||
|
|
||||||
|
<a href="https://render.com/deploy?repo=https://github.com/automatisch/automatisch">
|
||||||
|
<img src="https://render.com/images/deploy-to-render-button.svg" alt="Deploy to Render">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
:::info
|
||||||
|
|
||||||
|
We use default values of render plans with the `render.yaml` file, if you want to use the free plan or change the plan, you can change the `render.yaml` file in your fork and use your repository URL while creating a blueprint in Render.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## Production setup
|
## Production setup
|
||||||
|
|
||||||
If you need to change any other environment variables for your production setup, let's check out the [environment variables](/advanced/configuration#environment-variables) section of the configuration page.
|
If you need to change any other environment variables for your production setup, let's check out the [environment variables](/advanced/configuration#environment-variables) section of the configuration page.
|
||||||
|
113
render.yaml
Normal file
113
render.yaml
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
services:
|
||||||
|
- type: web
|
||||||
|
name: automatisch-main
|
||||||
|
env: docker
|
||||||
|
dockerfilePath: ./docker/Dockerfile
|
||||||
|
dockerContext: ./docker
|
||||||
|
repo: https://github.com/automatisch/automatisch
|
||||||
|
autoDeploy: false
|
||||||
|
envVars:
|
||||||
|
- key: HOST
|
||||||
|
fromService:
|
||||||
|
name: automatisch-main
|
||||||
|
type: web
|
||||||
|
envVarKey: RENDER_EXTERNAL_HOSTNAME
|
||||||
|
- key: POSTGRES_HOST
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: host
|
||||||
|
- key: POSTGRES_PORT
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: port
|
||||||
|
- key: POSTGRES_DATABASE
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: database
|
||||||
|
- key: POSTGRES_USERNAME
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: user
|
||||||
|
- key: POSTGRES_PASSWORD
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: password
|
||||||
|
- key: REDIS_HOST
|
||||||
|
fromService:
|
||||||
|
type: redis
|
||||||
|
name: automatisch-redis
|
||||||
|
property: host
|
||||||
|
- key: REDIS_PORT
|
||||||
|
fromService:
|
||||||
|
type: redis
|
||||||
|
name: automatisch-redis
|
||||||
|
property: port
|
||||||
|
- fromGroup: common-env-vars
|
||||||
|
- type: worker
|
||||||
|
name: automatisch-worker
|
||||||
|
env: docker
|
||||||
|
dockerfilePath: ./docker/Dockerfile
|
||||||
|
dockerContext: ./docker
|
||||||
|
repo: https://github.com/automatisch/automatisch
|
||||||
|
autoDeploy: false
|
||||||
|
envVars:
|
||||||
|
- key: WORKER
|
||||||
|
value: true
|
||||||
|
- key: HOST
|
||||||
|
fromService:
|
||||||
|
name: automatisch-main
|
||||||
|
type: web
|
||||||
|
envVarKey: RENDER_EXTERNAL_HOSTNAME
|
||||||
|
- key: POSTGRES_HOST
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: host
|
||||||
|
- key: POSTGRES_PORT
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: port
|
||||||
|
- key: POSTGRES_DATABASE
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: database
|
||||||
|
- key: POSTGRES_USERNAME
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: user
|
||||||
|
- key: POSTGRES_PASSWORD
|
||||||
|
fromDatabase:
|
||||||
|
name: automatisch-database
|
||||||
|
property: password
|
||||||
|
- key: REDIS_HOST
|
||||||
|
fromService:
|
||||||
|
type: redis
|
||||||
|
name: automatisch-redis
|
||||||
|
property: host
|
||||||
|
- key: REDIS_PORT
|
||||||
|
fromService:
|
||||||
|
type: redis
|
||||||
|
name: automatisch-redis
|
||||||
|
property: port
|
||||||
|
- fromGroup: common-env-vars
|
||||||
|
- type: redis
|
||||||
|
name: automatisch-redis
|
||||||
|
ipAllowList: [] # allow only internal connections
|
||||||
|
maxmemoryPolicy: noeviction
|
||||||
|
databases:
|
||||||
|
- name: automatisch-database
|
||||||
|
databaseName: automatisch
|
||||||
|
envVarGroups:
|
||||||
|
- name: common-env-vars
|
||||||
|
envVars:
|
||||||
|
- key: APP_ENV
|
||||||
|
value: production
|
||||||
|
- key: PROTOCOL
|
||||||
|
value: https
|
||||||
|
- key: PORT
|
||||||
|
value: 443
|
||||||
|
- key: ENCRYPTION_KEY
|
||||||
|
generateValue: true
|
||||||
|
- key: WEBHOOK_SECRET_KEY
|
||||||
|
generateValue: true
|
||||||
|
- key: APP_SECRET_KEY
|
||||||
|
generateValue: true
|
Reference in New Issue
Block a user