1. Caddy version (latest
):
2. How I run Caddy:
In docker on local machine
a. System environment:
windows 10 wsl2
b. Command:
N/A
c. docker.compose file:
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
d. My complete Caddyfile
localhost
respond "hello world"
3. The problem I’m having:
I’d like to get a simple hello world example going.
Entering https://localhost in the browser
will only show “This site can not be reached”