docker: Error response from daemon: driver failed programming external connectivity on endpoint n8n (f03e9bc9836fc5ed07c446c187265d04bc6400da7db6e2761937b7d5a83bc687): Bind for 0.0.0.0:5678 failed: port is already allocated.
ERRO[0000] error waiting for container: context canceled
Edit
So I quit the instance that I had running with this command:
root@docker-ubuntu-s-1vcpu-1gb-ams3-01:~# docker-compose down
and then tried again:
root@docker-ubuntu-s-1vcpu-1gb-ams3-01:~/n8n-docker-caddy# docker-compose down
Stopping n8n-docker-caddy_n8n_1 ... done
Stopping n8n-docker-caddy_caddy_1 ... done
Removing n8n-docker-caddy_n8n_1 ... done
Removing n8n-docker-caddy_caddy_1 ... done
Removing network n8n-docker-caddy_default
root@docker-ubuntu-s-1vcpu-1gb-ams3-01:~/n8n-docker-caddy# docker run -it --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n docker.n8n.io/n8nio/n8n:ai-beta
Initializing n8n process
n8n ready on 0.0.0.0, port 5678
Version: 1.9.0
Editor is now accessible via:
http://localhost:5678/
Press "o" to open in Browser.
But now I can’t access the instance from my normal domain.
Yes, the first error message was exactly about that, that you already have an n8n instance running on the same port. How to properly run multiple n8n instances on the same host, would definitely to much to explain here. If you do not have experience with hosting applications like n8n, we recommend either getting an expert who can set that up for you, or using our cloud solution. You can test the latter here for free.
That said. If you just want to play around a little bit you can spin up the LangChain version for testing on a different port (like 5679) via this command: