Repository navigation
Upgrade and Backup
Socialize follows semantic versioning: each release is published as
ghcr.io/sadjo/socialize:vX.Y.Z and :latest. Release notes are on the
releases page.
cd ~/socialize
docker compose pull
docker compose up -dDatabase migrations run automatically when the container starts. With SQLite, a copy of the database is made just
before (/data/socialize.db.YYYYMMDD-HHMMSS.bak); you may delete old copies once the upgrade is confirmed.
After upgrading from a version older than 0.9.16, build the responsive image sizes of existing media once:
docker compose exec app php bin/console app:media:complete-sizes.
Since v0.9.25, images received from the fediverse are copied to the instance (in several sizes, like your own).
For those received earlier, run once: docker compose exec app php bin/console app:media:cache-remote.
Since v0.9.37, text posts show a preview of their first link. For those already present, run once:
docker compose exec app php bin/console app:link-previews:fetch.
To pin a version, replace latest with a tag in compose.yaml (image: ghcr.io/sadjo/socialize:v0.9.15).
Re-running the installer with --version vX.Y.Z does the same.
Back up three things:
- the
docker.envfile (andmariadb.envif present) — especiallyAPP_SECRET; - the database;
- the
mediavolume.
Stop the application for a consistent copy (a few seconds of downtime):
cd ~/socialize
docker compose stop app
docker run --rm -v socialize_data:/data -v "$PWD":/backup alpine \
tar czf /backup/socialize-data-$(date +%F).tar.gz -C /data .
docker compose start appdocker compose exec mariadb sh -c 'mariadb-dump -u socialize -p"$MARIADB_PASSWORD" socialize' \
| gzip > socialize-db-$(date +%F).sql.gzdocker run --rm -v socialize_media:/media -v "$PWD":/backup alpine \
tar czf /backup/socialize-media-$(date +%F).tar.gz -C /media .For large libraries, prefer an incremental tool (restic, borg, rsync) pointed at the volume directory
(docker volume inspect socialize_media).
- Install Socialize with the same
docker.env(sameAPP_SECRETandDEFAULT_URI). - Stop the application:
docker compose stop app. - Restore the volumes (
tar xzf … -C /data,-C /media) or import the SQL dump into MariaDB. - Start again:
docker compose up -d.
Copy ~/socialize and both volumes, keep the same domain name, and update the DNS record. Federation keeps
working because addresses do not change.
Socialize does not migrate data between engines automatically. Use a fresh instance with MariaDB for new installations; for an existing SQLite instance, keep SQLite unless you need several worker containers.
Socialize · AGPL-3.0 · Report an issue · Website