I'm trying to set up a Caddy reverse proxy following a guide in a YouTube video, but I'm stuck. When I run the command `docker-compose up -d`, I get an error about failing to create a task for the container. It specifically mentions issues with mounting the Caddyfile, saying it can't create subdirectories and seems to imply I'm trying to mount a file instead of a directory. Can anyone help me figure out what I'm doing wrong?
2 Answers
It looks like the error is pointing out that you're not mounting a directory properly. Instead of trying to mount the Caddyfile directly, make sure you're just mounting the folder. So, change the way you're setting your volumes in the compose file—try using just `/home/Joe/container/caddy/:/etc/caddy/` without including the Caddyfile name.
Honestly, the error message is pretty clear about the issue. It says you might be trying to mount a file where a directory is expected. Double-check your paths.
Related Questions
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads