This guide walks you through upgrading your n8n Docker Compose setup. It covers locating your Docker Compose file, pulling the latest images, and restarting your services safely.
1. Connect to Your Server
Open your terminal and SSH into your server:
ssh root@your-server-ip2. Locate Your docker-compose.yml File
Most Docker Compose deployments have a docker-compose.yml or compose.yml file.
If you don’t remember where it is, search for it:
find / -name 'docker-compose.yml' 2>/dev/nullWait for the command to finish. Note the directory containing the file. For example:
/opt/n8n-docker-caddy/docker-compose.yml3. Change Directory to the Compose File Location
Move into the directory where your docker-compose.yml file is:
cd /opt/n8n-docker-caddy4. Upgrade n8n Using Docker Compose
Run the following commands in the directory with your compose file:
Pull the latest images:
docker compose pullStop and remove the existing containers:
docker compose downStart the new containers:
docker compose up -d
This will:
Download the latest images for your services,
Safely stop and remove your running containers,
Restart everything with the updated versions.
5. (Optional) Run Compose Commands from Anywhere
If you don’t want to change directories, use the -f option to specify your compose file:
docker compose -f /opt/n8n-docker-caddy/docker-compose.yml pull docker compose -f /opt/n8n-docker-caddy/docker-compose.yml down docker compose -f /opt/n8n-docker-caddy/docker-compose.yml up -d6. Verify Everything Is Running
Check your containers’ status:
docker compose psor
docker psVisit your n8n instance in the browser to ensure it’s up and running.
Troubleshooting
Error:
no configuration file provided: not foundSolution: Make sure you’re running the command in the folder that contains
docker-compose.yml, or specify the file with-f.
Persistent issues: Check the container logs:
docker compose logs -f
Summary
Always find your
docker-compose.ymlfirst.Run Docker Compose commands in that directory, or specify the file with
-f.Upgrade process is pull → down → up -d.
Need help automating? Contact us at https://designthat.cloud/open-ticket/.
Still need help?
Contact us