# Self-host Photoview

> A fast, simple photo gallery that indexes an existing folder tree without importing or duplicating files.

- Page: https://levelrail.com/templates/photoview/
- JSON: https://levelrail.com/templates/photoview.json
- Category: Media
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/photoview/photoview
- Upstream docs: https://photoview.github.io/docs/

## Requirements
- Memory: about 256 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 2.4.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| photoview | photoview/photoview | 2.4.0 | 80 | photoview_data -> /data; photoview_photos -> /photos; photoview_cache -> /app/cache |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| photoview | PHOTOVIEW_DATABASE_DRIVER | preset |
| photoview | PHOTOVIEW_LISTEN_IP | preset |
| photoview | PHOTOVIEW_LISTEN_PORT | preset |
| photoview | PHOTOVIEW_SQLITE_PATH | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/photoview/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 Photoview on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Photoview, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image photoview/photoview:2.4.0 is what you deploy there.

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