The result of this config: trying to access plex.mydomain.tld == 404.
The desired result: connect to my plex instance.
I can successfully wget the 192.168.1.134:32400 from inside traefik's container.
What's wrong in this config?
I'm having a similar issue when trying to add my unifi controller instance.
Note: Plex is working via direct IP access and via plex's web interface. It would be nice if I could configure plex clients to connect to my domain directly.
I had previously had this working by using a traefik toml file provider, but I am all in on using labels and don't want what amounts to two config files for one service.
[Unit]
After=traefik.service
[Container]
Image=docker.io/plexinc/pms-docker
ContainerName=plex
AutoUpdate=registry
Environment=PLEX_UID=1000
Environment=PLEX_GID=1000
Environment=ALLOWED_NETWORKS=192.168.1.0/24,192.168.2.0/24
# Secret=PLEX_CLAIM,type=env # expires in 5 minutes
AddDevice=/dev/dri:/dev/dri
# Ports to expose if not using host networking
# ExposeHostPort=32400
# ExposeHostPort=32410/udp
# ExposeHostPort=32412/udp
# ExposeHostPort=32413/udp
# ExposeHostPort=32414/udp
# ExposeHostPort=5353/udp
Volume=/media/ARCHIVE/ContainerVolumes/plex/config:/config:U
Volume=/media/ARCHIVE/ContainerVolumes/plex/transcode:/transcode:U
Volume=/media/ARCHIVE/Library:/Library:ro
Label=traefik.enable=true
Label=traefik.http.routers.plex.rule=Host(`plex.mydomain.tld`)
Label=traefik.http.services.plex.loadbalancer.servers[0].url=http://192.168.1.134:32400
Network=host
# Misc dead ends the docs have sent me down
#Label=traefik.http.routers.plex.service=plex
#Label=traefik.http.services.plex.loadbalancer.servers.port=32400
#Label=traefik.http.services.plex.loadbalancer.servers.url=192.168.1.134
#Label=traefik.http.services.plex.loadbalancer.servers.scheme=http
HealthCmd=["curl", "--connect-timeout", "15", "--max-time", "100", "--silent", "--show-error", "--fail", "--output", "/dev/null", "http://localhost:32400/identity"]
HealthInterval=5m
HealthOnFailure=kill
[Service]
Restart=always
[Install]
WantedBy=default.target
# vim: set filetype=confini :
Future troubleshooting:
When operating via docker labels, Traefik rarely outputs any errors at all. A mistake like 'service' should have been 'services' can be hard to spot. Thus troubleshooting is tedious, time consuming, tear inducing trial and error. I have grown to fear touching traefik. Is there a sane way to iterate? What am I missing?
Thanks