When opening the website for the dashboard I get: 404 page not found
Also, I do not understand this result and why it is being opened a non secure ssl warning. Maybe the CA cert is also needed but if so how can I specify it?
For the Traefik example you mentioned... I need to ask two questions:
a) How using commands valid ssl certificates can be specified? My university provides those certificates and CA file.
b) How using commands I can set traefik to listen to "external" secured port 8443 and redirect to traefik's internal 443? I want to reserve "external" 443 for another service.
You're close, but the issue you're facing with the 404 error and SSL warning is likely due to missing or incorrect router configuration for the Traefik dashboard.
First, you're trying to expose the dashboard on port 8443 using the web8443 entryPoint, but there’s no router explicitly defined to serve the dashboard on that port. Traefik’s dashboard is not automatically exposed unless you configure a router for it. You need to add the following labels to your traefik service in the docker-compose.yml file:
Make sure to replace yourdomain.com with your actual domain or hostname that points to the server running Traefik.
Second, the SSL warning you’re seeing is because you're using a self-signed certificate (ssl.crt and ssl.key). Modern browsers don’t trust self-signed certificates by default, so they show a "Not Secure" warning. For local or internal testing, you can proceed by accepting the warning in the browser. For production or public access, it’s better to use a certificate from a trusted authority like Let's Encrypt. Traefik supports automatic Let's Encrypt configuration using the ACME protocol.
If you're using a certificate from a Certificate Authority and it's still showing an SSL warning, it might be due to a missing CA chain. In that case, you should include the full certificate chain in the configuration. Update the certs-traefik.yaml file to point to the fullchain.pem and privkey.pem like this:
Lastly, make sure that port 8443 is not only exposed in your Docker configuration but also open on your firewall and router. You've already allowed it via UFW, which is good. Try accessing your dashboard through https://yourdomain.com:8443 and check if it loads properly. Also, use docker logs traefik to monitor any runtime errors related to routing or TLS.