Prerequisite: Opalstack account on AlmaLinux 9 server
- Create app (ngnix custom app). Note the port
- Create site and link your domain/subdomain
- ssh into your server
- Create podman volume:
podman volume create n8n_data
- Run podman
podman run -d \ --name n8n \ --memory=450m \ --memory-swap=450m \ -p YOUR_ASSIGNED_PORT:5678 \ -e N8N_HOST=flows.yourdomain.com \ -e N8N_SECURE_COOKIE=true \ -e GENERIC_TIMEZONE=Asia/Kolkata \ -e EXECUTIONS_DATA_SAVE_ON_SUCCESS=none \ -e EXECUTIONS_DATA_SAVE_ON_ERROR=all \ -e EXECUTIONS_DATA_MAX_AGE=168 \ -v n8n_data:/home/node/.n8n \ --restart=always \ docker.n8n.io/n8nio/n8n
goto the domain: https://flows.yourdomain.com/
you'll have to create owner account and then start using n8n
I posted a detailed tutorial with restart at reboot, backups etc on my blog: https://www.jjude.com/tech-notes/n8n-opalstack/