# Self-host Pocket ID

> A simple, secure OIDC provider that authenticates with passkeys instead of passwords.

- Page: https://levelrail.com/templates/pocket-id/
- JSON: https://levelrail.com/templates/pocket-id.json
- Category: Security
- Licence: BSD-2-Clause (Permissive license)
- Source: https://github.com/pocket-id/pocket-id
- Upstream docs: https://pocket-id.org/docs/setup/installation

## Requirements
- Memory: about 128 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: v1.13

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| pocket-id | ghcr.io/pocket-id/pocket-id | v1.13 | 1411 | pocket_id_data -> /app/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| pocket-id | APP_URL | preset |
| pocket-id | TRUST_PROXY | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy pocket-id --name my-pocket-id
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/pocket-id/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 Pocket ID 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 pocket-id for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/pocket-id/pocket-id:v1.13 is what you deploy there.

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