abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
766 stars 314 forks source link

Caddy Admin 2019 #251

Closed japrogramer closed 4 years ago

japrogramer commented 4 years ago

I'm trying to access the caddy API but

  caddy:
    image: abiosoft/caddy:0.11.0
    depends_on:
    - "graphql-engine"
    restart: always
    ports:
    - "80:80"
    - "443:443"
    - "2019:2019"
    volumes:
    - ./Caddy/local-Caddyfile:/etc/Caddyfile
    - caddy_certs:/root/.caddy

And Caddyfile

{
    #email
    #acme_ca
}
:2019 {
    proxy / localhost:2019 {
        transparent
    }
}

but curl localhost:2019/config blocks forever and the log for the caddy container doesn't print anything.

what am i doing wrong?

japrogramer commented 4 years ago

When I leaf out the 2019 rule in the cady file but leave the 2019 ports open my connection is reset when I try to

▶ curl 127.0.0.1:2019/config                                                                  
curl: (56) Recv failure: Connection reset by peer

with it the curl command never returns. It's like it gets' stuck in an infinite loop.

abiosoft commented 4 years ago

This image is for Caddy v1, kindly use the official docker image for Caddy v2.