docker deployment
This is the primary commercial deployment path. Ledgerise publishes a versioned Docker image. You run it with Docker Compose on your own server.
Who this is for: Admins performing a fresh installation on a VPS or server that may already host other applications.
how the docker install is exposed
Ledgerise uses one public hostname:
https://ledgerise.your-domain.comInside Docker, Ledgerise runs four services:
caddy— bundled local proxy for Ledgeriseapi— Ledgerise API and backendweb— Ledgerise dashboardworker— background jobs
Only the bundled caddy service is exposed to the host, and only on localhost:
127.0.0.1:18080Your existing server proxy, hosting panel, nginx, Caddy, or Traefik should forward the Ledgerise hostname to that local port:
https://ledgerise.your-domain.com -> http://127.0.0.1:18080Then Ledgerise's bundled Caddy routes internally:
/api/* -> api container
/healthcheck -> api container
everything else -> dashboardIf your DNS already has a wildcard record, such as *.your-domain.com -> VPS_PUBLIC_IP, you may not need a new DNS record. You still need the server proxy route for the Ledgerise hostname.
prerequisites
Before you begin, make sure you have:
Docker and Docker Compose installed on the server.
A PostgreSQL 14+ database accessible from the server.
Your Ledgerise commercial license key, provided during onboarding.
GitHub Container Registry access for the private Ledgerise image. Ledgerise provides the registry username
ledgerise-devand a personal access token during onboarding.A hostname where users will open Ledgerise, for example
ledgerise.your-domain.com.A server proxy or hosting panel that can forward that hostname to
127.0.0.1:18080.
step 1 — create the deployment folder
Create one folder on the server for Ledgerise:
Create docker-compose.yml in that folder:
Create Caddyfile in the same folder:
Ledgerise publishes this image privately in GitHub Container Registry. Before pulling it, sign in to GHCR on the server with the username and personal access token provided by Ledgerise:
When Docker prompts for a password, paste the personal access token provided by Ledgerise. The token is only for pulling the private image. Do not commit it to docker-compose.yml, .env, shell history, or deployment notes. Production use still requires a valid license key in Settings → System after first login.
step 2 — configure your environment file
Create .env in /opt/ledgerise and fill in your values:
Four variables are required before the application can start:
DATABASE_URL
Your PostgreSQL connection string, e.g. postgresql://ledgerise:password@your-db-host:5432/ledgerise
AUTH_TOKEN_SECRET
A strong random secret for signing session tokens. Generate one: openssl rand -hex 64
LEDGERISE_CREDENTIALS_KEY
A 64-character hex key for encrypting adapter credentials. Generate one: openssl rand -hex 32
LEDGERISE_DOMAIN
Hostname only, without https:// and without a path, e.g. ledgerise.your-domain.com
LEDGERISE_PROXY_PORT defaults to 18080. Change it only if another local service already uses that port.
Do not use localhost or 127.0.0.1 as the database host in DATABASE_URL for Docker deployments. Inside a Docker container, localhost means the container itself, not the VPS or database server. Use a hostname or IP address reachable from Docker, such as a managed database hostname, a private network IP, or the Docker service name if PostgreSQL runs in the same Compose network.
→ Full reference: environment variables
Generate the two required secrets on the server:
Paste the first output into AUTH_TOKEN_SECRET. Paste the second output into LEDGERISE_CREDENTIALS_KEY.
step 3 — run database migrations
Migrations must be applied before the application starts. Use the migrate tool service included in the Compose file:
This applies all pending SQL migrations to your database and records them in schema_migrations. It is safe to run repeatedly — already-applied migrations are skipped.
Always run migrations before starting the app, and run them again on every upgrade before restarting services.
step 4 — seed required built-in records
Fresh databases also need the built-in operator, adapter catalog, and default chart of accounts before the API can start. Run the seed command after migrations:
Run the seed command for fresh databases during initial setup. Do not use it as a routine upgrade step after operators have customized the default chart of accounts or built-in adapter metadata.
step 5 — start the services
Check that all four services are running:
All four should show Up in the status column.

step 5 — connect your server proxy
Configure your existing server proxy or hosting panel so the Ledgerise hostname forwards to the local Ledgerise proxy port:
If you use nginx directly, the proxy block looks like this:
Use your hosting panel, nginx, Caddy, Traefik, or Certbot flow to enable HTTPS for the hostname.
step 6 — verify the health check
First verify the local Ledgerise proxy:
Then verify the public hostname:
A healthy response looks like this:
If repository shows "memory" instead of "postgres", the API is not reading your DATABASE_URL. See the troubleshooting section below.
Check the browser runtime config:
It should contain your Ledgerise domain:
step 7 — sign in
Open the dashboard URL in your browser:
Sign in with the default sandbox credentials:
Email:
admin@ledgerise.devPassword:
password
The dashboard should load with a Sandbox badge in the top navigation bar. If you see this badge, your deployment is running correctly.
→ What to do next: first login
After first login, activate your license from Settings → System using your Ledgerise license key. You do not need a license key in .env.
troubleshooting
dashboard shows "failed to fetch"
Check the runtime config your browser receives:
The response should contain your Ledgerise domain:
If it is wrong, update LEDGERISE_DOMAIN in .env and restart the web service:
If it is correct, check that your server proxy forwards https://ledgerise.your-domain.com to http://127.0.0.1:18080.
public hostname does not load
Check the local Ledgerise proxy:
If the local check works but the public hostname fails, the problem is in DNS, HTTPS, or the existing server proxy configuration.
api shows "repository":"memory" in healthcheck
The API is not receiving DATABASE_URL, or DATABASE_URL points to a database host that the Docker container cannot reach. Do not use localhost or 127.0.0.1 for the database host unless PostgreSQL is running inside the same container, which is not the standard Ledgerise deployment. Use a reachable database hostname, private IP, or Compose service name. Restart the API service after fixing the value:
permission denied for schema public during migrations
PostgreSQL 15+ restricts CREATE TABLE on the public schema. Grant the required permission to your database user:
Then run migrations again.
first login fails
If the default admin user was not created, migrations may not have run successfully, or the API may have started before the database was ready. Confirm migrations ran cleanly, then restart the API:
Last updated
