CallMeTechie
DE Login
Home Products Blog About Contact

Upgrade GateControl

🚀 Installation & Setup · Updated 1 month ago

11. Updates

Automatic update

cd /opt/gatecontrol
./update.sh

update.sh pulls the latest image from GHCR, recreates the container only if a new image was actually pulled, and logs to /var/log/gatecontrol-update.log. Safe to schedule via cron or a systemd timer:

# /etc/cron.d/gatecontrol-update
0 3 * * * root /opt/gatecontrol/update.sh

Manual update

cd /opt/gatecontrol
docker compose pull
docker compose up -d

Downtime is roughly 10–30 seconds while the container restarts and Caddy re-reads its persisted state. No data migration is ever required — migrations run automatically on container start, with per-step commits so a failed migration does not roll back successful ones.

Verify after update

curl -s http://127.0.0.1:3000/health | jq .version

The version string should match the tag you pulled.


Cookie Settings

We use cookies to improve your experience. Essential cookies are always active.

Privacy Policy
ESC
↑↓ navigate open esc close