FIXED:
the command docker-compose up -d
apparenty creates a sibling folder to the n8n-docker-caddy called n8n-digital-ocean. This directory also has a caddy_config folder with a Caddyfile directory in it, probably created when i ran the command without moving the Caddyfile from local_files to caddy_config (see below).
SOLUTION
- make sure the Caddyfile is in the caddy_config directory in n8n-docker-caddy.
- delete the Caddyfile directory from n8n-digital-ocean/caddy_config
- run
docker-compose up -d
again.
Describe the issue/error/question
I’m following the instructions at https://docs.n8n.io/hosting/server-setups/digital-ocean/#configure-caddy and I’m running into an issue that is maybe related to the fact that the Caddyfile is not where the guide says it should be (in /caddy_config) but in /local_files. (see github repo )
When I run docker-compose up -d
I get an error, apparently related to mounting the Caddyfile to the docker image config.
What is the error message (if any)?
[email protected]:~/n8n-docker-caddy# docker-compose up -d
Starting n8n-docker-caddy_caddy_1 ...
Starting n8n-docker-caddy_caddy_1 ... error
ERROR: for n8n-docker-caddy_caddy_1 Cannot start service caddy: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/root/n8n-digital-ocean/caddy_config/Caddyfile" to rootfs at "/etc/caddy/Caddyfile" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: for caddy Cannot start service caddy: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/root/n8n-digital-ocean/caddy_config/Caddyfile" to rootfs at "/etc/caddy/Caddyfile" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.
attempted solutions:
- copied, and also moved Caddyfile from local_files to caddy_config
attempting to run n8n in docker with caddy on digital ocean, debian 11 as root.