Container Management
Setting Up
If you don't already have one create a services, create one in the home folder:
For each service that you run, it is recommended to create a new folder with the name of that service, and create a compose file inside that folder. This will make it easy to deploy, share and update these services over time.
To manage your services, we recommend to use podman and oxker, as both are fully managed in the terminal (making management through SSH possible) and updates of podman are simpler. You can install both tools as follows:
N8N
Compose File
Start by creating a folder called n8n and paste the following compose file below:
compose.yaml
services:
n8n:
image: n8nio/n8n:latest
container_name: n8n
environment:
- GENERIC_TIMEZONE=Europe/Zurich
- NODE_ENV=production
- N8N_SECURE_COOKIE=false
ports:
- "5678:5678"
volumes:
- n8n_data:/home/node/.n8n
restart: unless-stopped
volumes:
n8n_data:
name: n8n_data
Then you can run the command:
Updating
Run the following commands to update the n8n container: