Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions blueprints/rebase/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
services:
rebase:
image: rebasepro/server:0.37.0
restart: unless-stopped
expose:
- 8080
depends_on:
db:
condition: service_healthy
environment:
NODE_ENV: production
PORT: "8080"
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
JWT_SECRET: ${JWT_SECRET}
REBASE_SERVICE_KEY: ${REBASE_SERVICE_KEY}
CORS_ORIGINS: ${PUBLIC_URL}
FRONTEND_URL: ${PUBLIC_URL}
# The first admin account, created once while the users table is empty.
# Sign in with it, then change the password.
REBASE_ADMIN_EMAIL: ${REBASE_ADMIN_EMAIL}
REBASE_ADMIN_PASSWORD: ${REBASE_ADMIN_PASSWORD}
DISABLE_SELF_REGISTRATION: "true"
# Uploads go to the rebase_storage volume, which survives redeploys.
# Switch to STORAGE_TYPE=s3 to use a bucket instead.
STORAGE_PATH: /storage/uploads
FORCE_LOCAL_STORAGE: "true"
volumes:
- rebase_storage:/storage

db:
image: pgvector/pgvector:pg18
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- rebase_db:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 12

volumes:
rebase_storage:
rebase_db:
1 change: 1 addition & 0 deletions blueprints/rebase/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions blueprints/rebase/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "rebase",
"name": "Rebase",
"version": "0.37.0",
"description": "Rebase is an open-source backend for PostgreSQL: REST API, auth, realtime, storage, cron and an admin panel, with row-level security enforced by Postgres. This template starts it with no code: open /_studio on your domain, sign in with the generated admin account, and every table you create there is served at once.",
"logo": "logo.svg",
"links": {
"github": "https://github.com/rebasepro/rebase",
"website": "https://rebase.pro/",
"docs": "https://rebase.pro/docs/"
},
"tags": [
"backend",
"database",
"postgres",
"api"
],
"seoTitle": "Self-Host Rebase on Dokploy",
"seoDescription": "Open-source Postgres backend with REST, auth, realtime, storage and an admin panel. Self-host Rebase on Dokploy in a few clicks."
}
28 changes: 28 additions & 0 deletions blueprints/rebase/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[variables]
main_domain = "${domain}"
public_url = "https://${main_domain}"
postgres_user = "rebase"
postgres_db = "rebase"
postgres_password = "${password:32}"
jwt_secret = "${base64:48}"
service_key = "${base64:48}"
admin_email = "${email}"
admin_password = "${password:24}"

[config]
env = [
"PUBLIC_URL=${public_url}",
"POSTGRES_USER=${postgres_user}",
"POSTGRES_DB=${postgres_db}",
"POSTGRES_PASSWORD=${postgres_password}",
"JWT_SECRET=${jwt_secret}",
"REBASE_SERVICE_KEY=${service_key}",
"REBASE_ADMIN_EMAIL=${admin_email}",
"REBASE_ADMIN_PASSWORD=${admin_password}",
]
mounts = []

[[config.domains]]
serviceName = "rebase"
port = 8_080
host = "${main_domain}"
Loading