Maintenance
Back up, upgrade, monitor, and recover a self-hosted instance.
Back up data/db, data/media, and the JWT and encryption secrets as one restore set. Test a restore before relying on it. A database backup without media cannot restore complete publications.
Upgrade
Pull the selected image, restart the service, and inspect the logs:
docker compose pull
docker compose up -d
docker compose logs --tail=100 -f openpostThe container applies database migrations on startup. Back up before upgrading; restoring an older image may also require restoring its database backup.
Back up and restore
From the directory containing docker-compose.yml, stop the service while copying SQLite and media:
docker compose stop
tar -czf "openpost-backup-$(date +%Y%m%d-%H%M%S).tar.gz" data .env docker-compose.yml
docker compose startStore the archive somewhere private and off the server. It contains credentials and your content. To restore on another server, extract it into an empty directory and run docker compose up -d there with the same image version used for the backup.
Check health
curl https://your-openpost-host.example/api/v1/health
curl https://your-openpost-host.example/api/v1/readyFor a failed post, inspect the affected rendition, fix its provider or media issue, and retry it. For a failed startup, check logs, database connectivity, writable media storage, free disk space, and secret values.