# Automation Self-hosted n8n on Ubuntu VPS with Docker Compose, Traefik, PostgreSQL, Queue Mode (Redis + workers)

**URL:** <https://community.n8n.io/t/automation-self-hosted-n8n-on-ubuntu-vps-with-docker-compose-traefik-postgresql-queue-mode-redis-workers/183891>\
**Category:** Tips & Tricks\
**Created:** [September 8, 2025, 8:13am UTC](https://community.n8n.io/t/automation-self-hosted-n8n-on-ubuntu-vps-with-docker-compose-traefik-postgresql-queue-mode-redis-workers/183891 "2025-09-08T08:13:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![The\_Nguyen\_Minh](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/the_nguyen_minh/32/112983_2.png) [@The\_Nguyen\_Minh](https://community.n8n.io/u/The_Nguyen_Minh)\
**Post date:** [September 14, 2025, 8:07am UTC](https://community.n8n.io/t/automation-self-hosted-n8n-on-ubuntu-vps-with-docker-compose-traefik-postgresql-queue-mode-redis-workers/183891/3 "2025-09-14T08:07:12Z")

</div>

Thanks,  
I posted a new topic to cover this.

> [@Automation script to Self-Hosting n8n with Docker Compose (both single and queue mode) and Monitoring with Prometheus & Grafana](http://community.n8n.io/t/automation-script-to-self-hosting-n8n-with-docker-compose-both-single-and-queue-mode-and-monitoring-with-prometheus-grafana/187720):
>
> Hi Guys, When I first tried to self-host n8n on a VPS, I ran into the usual maze: Docker basics, TLS/Traefik, DNS, PostgreSQL, Redis, backups… lots of moving parts. The official guides (e.g., [DigitalOcean setup](https://docs.n8n.io/hosting/installation/server-setups/digital-ocean/#configure-n8n)) are helpful but a bit high-level for a complete, production-ready stack. After digging through countless GitHub repos with partial docker-compose examples, I still couldn’t find a full lifecycle solution—install → upgrade → backup/restore → cleanup → monitoring—all in one place. So I …

---

_[View the full topic](https://community.n8n.io/t/automation-self-hosted-n8n-on-ubuntu-vps-with-docker-compose-traefik-postgresql-queue-mode-redis-workers/183891)._
