Thanks @matt
Nothing is output in the logs when I try to connect via. https. is there anything I need to add to the config, as I understand it should output errors by default?
However if I inside the container run tcpdump I can see the incoming traffic. I attached the output in the bottom of this post.
I have also pushed the files to reproduce to a github repo at
https://github.com/RonniSkansing/caddy2-compose
for anyone wanting to reproduce it should be as simple as clone and docker-compose up
tcpdump from inside container
08:21:58.057844 IP 172.28.0.1.52304 > 0588b2e702b4.443: Flags [S], seq 2980725664, win 64240, options [mss 1460,sackOK,TS val 1053687953 ecr 0,nop,wscale 7], length 0
08:21:58.057866 IP 0588b2e702b4.443 > 172.28.0.1.52304: Flags [S.], seq 3395407381, ack 2980725665, win 65160, options [mss 1460,sackOK,TS val 1764848651 ecr 1053687953,nop,wscale 7], length 0
08:21:58.057883 IP 172.28.0.1.52304 > 0588b2e702b4.443: Flags [.], ack 1, win 502, options [nop,nop,TS val 1053687953 ecr 1764848651], length 0
08:21:58.064803 IP 172.28.0.1.52304 > 0588b2e702b4.443: Flags [P.], seq 1:518, ack 1, win 502, options [nop,nop,TS val 1053687960 ecr 1764848651], length 517
08:21:58.064822 IP 0588b2e702b4.443 > 172.28.0.1.52304: Flags [.], ack 518, win 506, options [nop,nop,TS val 1764848658 ecr 1053687960], length 0
08:21:58.065102 IP 0588b2e702b4.443 > 172.28.0.1.52304: Flags [P.], seq 1:8, ack 518, win 506, options [nop,nop,TS val 1764848658 ecr 1053687960], length 7
08:21:58.065131 IP 172.28.0.1.52304 > 0588b2e702b4.443: Flags [.], ack 8, win 502, options [nop,nop,TS val 1053687960 ecr 1764848658], length 0
08:21:58.065173 IP 0588b2e702b4.443 > 172.28.0.1.52304: Flags [F.], seq 8, ack 518, win 506, options [nop,nop,TS val 1764848658 ecr 1053687960], length 0
08:21:58.066181 IP 172.28.0.1.52304 > 0588b2e702b4.443: Flags [F.], seq 518, ack 9, win 502, options [nop,nop,TS val 1053687961 ecr 1764848658], length 0
08:21:58.066197 IP 0588b2e702b4.443 > 172.28.0.1.52304: Flags [.], ack 519, win 506, options [nop,nop,TS val 1764848659 ecr 1053687961], length 0