1. Caddy version (
2. How I run Caddy:
I run Caddy inside Docker, it’s configured in my docker-compose.yml as following:
a. System environment:
No specific command since run with Docker
c. Service/unit/compose file:
caddy: image: caddy:2.0.0-alpine restart: always volumes: - ./Caddyfile:/etc/caddy/Caddyfile ports: - "8180:8080" - "443:443"
d. My complete Caddyfile or JSON config:
Broke my whole Caddyfile down to this which is the main reason of my problems
:8080 file_server browse
3. The problem I’m having:
I would like the file_server to show my current directory (where my docker-compose.yml and my Caddyfile is in) since I want to share static files (inside a static folder) with some reverse proxies I use. Instead the file_server shows me the directory of the caddy configuration (seems like it has something to do with $HOME)
4. Error messages and/or full log output:
No error message, just wrong directory
5. What I already tried:
I’ve already tried manipulating the root in the Caddyfile with following code:
:8080 root * /home/fas/docker_env file_server browse
The mentioned folder is where I want to be (where my Caddyfile & my docker-compose are located).
I’d like to somehow have it work in the current directory so I can use
file_server /static/* browse
to serve my static files.