mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 18:41:52 +08:00
feat: add Render Blueprint for one-click self-host (#15478)
Adds one-click deploy to [Render](https://render.com) for self-hosters. The change is additive: a root `render.yaml`, two small files under `.render/`, and one button in the existing Self-Host section of the README.
This commit is contained in:
+52
@@ -0,0 +1,52 @@
|
||||
version: '1'
|
||||
|
||||
projects:
|
||||
- name: affine
|
||||
environments:
|
||||
- name: production
|
||||
services:
|
||||
- type: web
|
||||
name: affine
|
||||
runtime: docker
|
||||
plan: standard
|
||||
# The Dockerfile adds a start script to ghcr.io/toeverything/affine:stable. It runs migrations and the server
|
||||
dockerfilePath: ./.render/Dockerfile
|
||||
dockerContext: ./.render
|
||||
healthCheckPath: /info
|
||||
disk:
|
||||
# Uploaded blobs (~/.affine/storage) and the generated private key
|
||||
# (~/.affine/config/private.key) must survive restarts.
|
||||
name: affine-data
|
||||
mountPath: /root/.affine
|
||||
sizeGB: 10
|
||||
envVars:
|
||||
- key: AFFINE_SERVER_PORT
|
||||
value: 10000
|
||||
- key: AFFINE_SERVER_HTTPS
|
||||
value: true
|
||||
- key: DATABASE_URL
|
||||
fromDatabase:
|
||||
name: affine-postgres
|
||||
property: connectionString
|
||||
- key: REDIS_SERVER_HOST
|
||||
fromService:
|
||||
name: affine-keyvalue
|
||||
type: keyvalue
|
||||
property: host
|
||||
- key: REDIS_SERVER_PORT
|
||||
fromService:
|
||||
name: affine-keyvalue
|
||||
type: keyvalue
|
||||
property: port
|
||||
|
||||
- type: keyvalue
|
||||
name: affine-keyvalue
|
||||
plan: starter
|
||||
maxmemoryPolicy: noeviction
|
||||
ipAllowList: [] # internal connections only
|
||||
|
||||
databases:
|
||||
- name: affine-postgres
|
||||
plan: basic-256mb
|
||||
postgresMajorVersion: '16'
|
||||
ipAllowList: [] # internal connections only
|
||||
Reference in New Issue
Block a user