1. Caddy version (caddy version
):
Caddy v2
2. How I run Caddy:
via Docker caddy:alpine
image.
a. System environment:
Docker Desktop v2.3.0.4
macOS Catalina v10.15.6
b. Command:
docker run -d --name caddy -p 80:80 -p 443:443 -p 2019:2019 caddy:alpine
c. Service/unit/compose file:
Not relevant.
d. My complete Caddyfile or JSON config:
No config set
3. The problem I’m having:
Not really having a problem, more of looking for guidance on achieving something. I want to use Caddy running in a docker container on localhost to proxy my-app.local
to localhost:9000
and write a little shell script that allows me to add more virtual hosts via the api, for example vhost second-app.local 9001
would then tell Caddy to proxy second-app.local
to localhost:9001
.
4. Error messages and/or full log output:
No errors.
5. What I already tried:
Never tried anything yet.
6. Links to relevant resources:
No links.