# Self-host Picsur

> A simple image host with on-the-fly format conversion.

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

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 17-alpine | none | db_data -> /var/lib/postgresql/data |
| picsur | ghcr.io/caramelfur/picsur | 0.5.6 | 8080 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| picsur | PICSUR_ADMIN_PASSWORD | generated |
| picsur | PICSUR_DB_DATABASE | preset |
| picsur | PICSUR_DB_HOST | preset |
| picsur | PICSUR_DB_PASSWORD | generated |
| picsur | PICSUR_DB_PORT | preset |
| picsur | PICSUR_DB_USERNAME | preset |
| picsur | PICSUR_JWT_SECRET | generated |

## Deploy

### CLI

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

### API

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

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