Tls termination - https to http, simple guide

Using docker. First day playing with Traefik so lots to learn. Been bashing my head against a wall trying to figure out what appears to be very simple: terminate https and pass the request via http to my app.

--https---<traefik (docker port 9443)>--http-samehost--<application (docker port 8000)>

I'm ok with using the internal self-signed certificate.

I've searched the web, the forum. All the examples I can find are either redirecting http to https, or involve letsencrypt, or are so old that the I just get random error message about EntryPoints not existing, nodes not working.

Does anyone have a sample dockerfile that works with v3 that terminates tls?

Side note: I'm not using a 'web' address - just IP addresses for the host.

You normally can’t use an IP with https, as the browser will validate the host/domain from the request with the TLS cert from the target, but you can't get a valid public TLS cert with IP.

Usually Traefik terminates TLS and proxies/forwards requests with http, check simple Traefik example.

Note that you need to use more complex dnsChallenge if you don’t use external standard ports 80/443.