Need Help with Caddy Reverse Proxy Docker Setup Error

0
0
Asked By CuriousCat93 On

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

Answered By TechieTom82 On

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.

Answered By HelpfulHannah On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.