# Self-host PhotoPrism

> An AI-powered photo management app that indexes and organizes your library as you own it.

- Page: https://levelrail.com/templates/photoprism/
- JSON: https://levelrail.com/templates/photoprism.json
- Category: Media
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/photoprism/photoprism
- Upstream docs: https://docs.photoprism.app/getting-started/docker-compose/

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 260728

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| photoprism | photoprism/photoprism | 260728 | 2342 | photoprism_originals -> /photoprism/originals; photoprism_storage -> /photoprism/storage |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| photoprism | PHOTOPRISM_ADMIN_PASSWORD | generated |
| photoprism | PHOTOPRISM_DISABLE_TLS | preset |
| photoprism | PHOTOPRISM_SITE_URL | preset |

## Deploy

### CLI

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

### API

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

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