Add Dokploy configuration template for Spliit with environment variable (#969)

* Add Dokploy configuration template for Spliit with environment variables and domain setup

* Fix : add double quote

* Fix : remove container name

* Fix : service name

* Fix : use good name of database

* Fix : change db name
This commit is contained in:
Quentin H
2026-07-07 14:55:31 -04:00
committed by GitHub
parent cdd996f73a
commit f381e4db50
4 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
services:
spliit:
image: ghcr.io/spliit-app/spliit:1.19.0
restart: unless-stopped
env_file:
- .env
depends_on:
spliit-db:
condition: service_healthy
spliit-db:
image: pgvector/pgvector:pg16
volumes:
- ${DB_DATA_LOCATION}:/var/lib/DBql/data
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE:-spliit}
POSTGRES_INITDB_ARGS: '--data-checksums'
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test:
['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-spliit}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
env_file:
- .env

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

@@ -0,0 +1,24 @@
[variables]
main_domain = "${domain}"
secret_key = "${password}"
project_name = "spliit"
[config]
mounts = []
[[config.domains]]
serviceName = "spliit"
port = 3000
host = "${main_domain}"
[config.env]
DB_USERNAME = "${project_name}-admin"
DB_PASSWORD = "${secret_key}"
DB_DATA_LOCATION = "/data/${project_name}/database"
DB_DATABASE = "${project_name}"
# --- PostgreSQL ---
POSTGRES_PRISMA_URL = "postgresql://${DB_USERNAME}:${DB_PASSWORD}@${project_name}-db:5432/${DB_DATABASE}"
POSTGRES_URL_NON_POOLING = "postgresql://${DB_USERNAME}:${DB_PASSWORD}@${project_name}-db:5432/${DB_DATABASE}"

View File

@@ -5899,6 +5899,23 @@
"storage"
]
},
{
"id": "spliit",
"name": "Spliit",
"version": "latest",
"description": "Spliit is a lightweight, self-hosted alternative to Auth0 and Clerk. Open-source, cost-effective, and developer-friendly, it provides secure authentication (OAuth, email/password, social logins) with full control over your data. No per-user fees, easy to integrate, and perfect for startups or privacy-focused projects.",
"logo": "spliit.png",
"links": {
"github": "https://github.com/spliit-app/spliit",
"website": "https://spliit.app/",
"docs": "https://github.com/spliit-app"
},
"tags": [
"budgeting",
"finance",
"money"
]
},
{
"id": "stack-auth",
"name": "Stack Auth",