# Self-host Spliit

> A free way to split expenses with friends and groups, no accounts needed. Share a group link and everyone adds expenses. MIT licensed, backed by Postgres.

- Page: https://levelrail.com/templates/spliit/
- JSON: https://levelrail.com/templates/spliit.json
- Category: Finance
- Licence: MIT (Permissive license)
- Source: https://github.com/spliit-app/spliit
- Upstream docs: https://github.com/spliit-app/spliit

## Requirements
- Memory: about 384 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | pgdata -> /var/lib/postgresql/data |
| spliit | ghcr.io/spliit-app/spliit | 1.30.0 | 3000 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| spliit | POSTGRES_PRISMA_URL | generated |
| spliit | POSTGRES_URL_NON_POOLING | generated |

## Deploy

### CLI

```bash
levelrail-cli templates install spliit --name my-spliit
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/spliit/install \
  -d '{
    "name": "my-spliit"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## Questions

### Can I deploy Spliit on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id spliit for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, ghcr.io/spliit-app/spliit:1.30.0 is what you deploy there.

Self-host Spliit, Spliit docker compose file, deploy Spliit on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
