The Caddy + Compose setup is a solid starting point. One thing I'd add before going live is a backup for the Postgres volume and the n8n encryption key, since losing that key makes stored credentials unreadable even if the database survives.
The guide covers both, in "Update and back up". It dumps the database with pg_dumpall, archives the .n8n folder and copies the .env with the encryption key off the VPS. The .env section also warns that without N8N_ENCRYPTION_KEY a restored backup still loads, but none of the stored credentials can be decrypted. Running the backup on a schedule with cron is in the next steps.
Good catch, Fernando — I missed that section. The one extra step I would still add is a test restore on a spare container, since a backup that has never been restored is only a hope. If the credentials decrypt there, the cron job is doing its job.
Agreed. I followed up with a separate guide on this blog ("Automatic n8n backups: cron, encrypted copies and a tested restore") covering the automated cron backup, encrypted off-site copies, and a restore test in a throwaway stack that checks credential decryption.
Rishabh Mishra
The Caddy + Compose setup is a solid starting point. One thing I'd add before going live is a backup for the Postgres volume and the n8n encryption key, since losing that key makes stored credentials unreadable even if the database survives.