Deploy PGBackWeb on Coolify and backup multiple PostgreSQL databases to S3-compatible storage buckets. Best for when db is defined in a monorepo docker-compose and coolify cannot auto-detect it.
- In Coolify, create a new Service → Docker Compose
- Paste the
docker-compose.ymlcontent - Deploy - Coolify handles the rest
- Under services, find pgbackweb and assign domain, make sure to add port
8085(eg.pgbackweb.yourdomain.com:8085)
| Service | Description | Port |
|---|---|---|
| pgbackweb | Backup management web UI | 8085 |
| postgres | PostgreSQL database for PGBackWeb metadata | 5432 (internal) |
PGBackWeb can backup any PostgreSQL database accessible from your network:
- Log into the PGBackWeb interface
- Go to Databases → Add Database
- Enter connection details for the database you want to backup
- Configure backup schedules and S3 destinations as needed
To store backups in S3-compatible storage:
- Go to Destinations in PGBackWeb
- Add your S3 bucket credentials
- Assign the destination to your backup jobs
Compatible with AWS S3, MinIO, Cloudflare R2, Backblaze B2, etc.
-
Create an R2 bucket
- Log into Cloudflare Dashboard
- Go to R2 Object Storage → Create bucket
- Choose a bucket name (e.g.,
pgbackups) - Select your preferred location
-
Create API tokens
- Go to R2 Object Storage → Manage R2 API Tokens
- Click Create API token
- Select Object Read & Write permission
- Scope to your specific bucket (recommended) or all buckets
- Click Create API Token
- Save the Access Key ID and Secret Access Key (shown only once)
-
Get your R2 endpoint
- Your endpoint URL format:
https://<ACCOUNT_ID>.r2.cloudflarestorage.com - Find your Account ID in the Cloudflare dashboard URL or R2 overview page
- Your endpoint URL format:
-
Configure in PGBackWeb
- Go to Destinations → Add Destination
- Fill in the details:
Field Value Name Cloudflare R2(or your preference)Endpoint https://<ACCOUNT_ID>.r2.cloudflarestorage.comRegion autoBucket Your bucket name (e.g., pgbackups)Access Key Your R2 Access Key ID Secret Key Your R2 Secret Access Key -
Test the connection and save
IMPORTANT: Login email is case-sensitive. Emails are stored in lowercase but login is case-sensitive. If you registered with
User@Example.com, you must login withuser@example.com(all lowercase).
This deployment configuration is provided as-is. PGBackWeb is licensed under AGPL-3.0.