I would like to do the equivalent of this (adding irc) :
But in the commands instead because I put all my traefik configuration in docker-compose files. However I could only find the ALPN() rule for TCP routers but I couldn't figure out how to use it because it seemed to have no effect.
The TLS config is "dynamic", so it does not go in command, which is "static".
You either use a
provider.file or labels. But check first if it is supported in Docker labels.
I tried to add the following:
- "--providers.file.filename=/traefik_conf/traefik.toml"to the
command and I added
"./traefik_conf:/traefik_conf" as a bind volume.
That traefik.toml file contains the following :
However it seems nothing changes. Am I missing something there?
I don't know if
irc is valid and supported, but in general it should work like this. Note that
.toml format looks different, so try renaming to
Also note that
traefik.toml are usually used for static config, so I suggest to rename it, maybe 'traefik-dynamic.yml'
Enable Traefik debug log and check if your file is loaded correctly by Traefik.