# Self-host Hoppscotch

> An open-source API development platform, a self-hosted alternative to Postman, backed by Postgres.

- Page: https://levelrail.com/templates/hoppscotch/
- JSON: https://levelrail.com/templates/hoppscotch.json
- Category: Developer Tools
- Licence: MIT (Permissive license)
- Source: https://github.com/hoppscotch/hoppscotch
- Upstream docs: https://docs.hoppscotch.io

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 15-alpine | none | hoppscotch_db_data -> /var/lib/postgresql/data |
| hoppscotch | hoppscotch/hoppscotch | 2026.2.1 | 80 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| hoppscotch | DATABASE_URL | generated |
| hoppscotch | DATA_ENCRYPTION_KEY | generated |
| hoppscotch | ENABLE_SUBPATH_BASED_ACCESS | preset |
| hoppscotch | VITE_ALLOWED_AUTH_PROVIDERS | preset |
| hoppscotch | VITE_BASE_URL | preset |
| hoppscotch | WHITELISTED_ORIGINS | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy hoppscotch --name my-hoppscotch
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/hoppscotch/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Hoppscotch 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 hoppscotch for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:15-alpine, hoppscotch/hoppscotch:2026.2.1 is what you deploy there.

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