# Self-host PG Back Web

> A web UI for scheduling, encrypting, and restoring PostgreSQL backups.

- Page: https://levelrail.com/templates/pgbackweb/
- JSON: https://levelrail.com/templates/pgbackweb.json
- Category: Database Tools
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/eduardolat/pgbackweb
- Upstream docs: https://github.com/eduardolat/pgbackweb

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| pgbackweb | eduardolat/pgbackweb | 0.5.2 | 8085 | pgbackweb_data -> /backups |
| pgbackweb-db | postgres | 17-alpine | none | pgbackweb_postgres_data -> /var/lib/postgresql/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| pgbackweb | PBW_ENCRYPTION_KEY | generated |
| pgbackweb | PBW_POSTGRES_CONN_STRING | generated |
| pgbackweb-db | POSTGRES_DB | preset |
| pgbackweb-db | POSTGRES_PASSWORD | generated |
| pgbackweb-db | POSTGRES_USER | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/pgbackweb/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 PG Back Web 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 PG Back Web, 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 eduardolat/pgbackweb:0.5.2, postgres:17-alpine is what you deploy there.

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