I now need to stop traefik from generating its own certificate and pass my own certificate which i have generated through certbot. Accordingly, i checked the user defined tls section here - Traefik TLS Documentation | Traefik | v3.0 , but i dont' see any cli option here ?
Can someone please help me with the the cli command for the user defined tls referred above
Lastly, which lines would i need to remove from the existing cli arguments i use.i think except the first 2 lines, i should remove everything else but just wanna confirm
It felt a weird idea to have a separate yml/toml just for 2 lines of config. So i added the following to the command: block of Traefik in my docker compose
I am trying to enter shell command to create the directory /config and wget config.toml from github gists inside that folder then use providers.file to have traefik read that dynamic config
But the sh command doesn't seem to have worked at all, any clue what might be going wrong here ?
I just need to execute this shell command inside traefik container but its not getting accepted along with the existing parameters because ig those parameters are passed to the entrypoint. i can't really pass a shell command here. Normally such commands can be easily passed through sh -c but don't seem possible in combination with traefik cli arguments
Did you ever check my other post? It's running a full script inside docker-compose.
Of course if you overwrite entrypoint and command, you need to manually start Traefik at the end. According to the Dockerfile, its just /traefik.
You also use CLI for --providers.file, but I don't see any entrypoint declaration. You can not mix static config in traefik.yml and CLI parameters, Traefik will only use one source. Please check again the simple Traefik example.