Configuring multiple routers & services with Traefik
2020-06-28 | #docker #traefik
Quick note on configuring a single Docker container that needs to expose multiple ports using Traefik. For this example, I’m using Ubooquity as it uses a separate port for admin that I wanted to just route on the same domain. version: "3.7" services: ubooquity: image: linuxserver/ubooquity container_name: ubooquity environment: - PUID=1000 - PGID=1000 - TZ=America/Chicago - MAXMEM=1024 # MB labels: - traefik.http.routers.ubooquity.rule=Host(`ubooquity.example.com`) - traefik.http.routers.ubooquity.service=ubooquity - traefik.http.services.ubooquity.loadbalancer.server.port=2202 - traefik.http.services.ubooquity.loadbalancer.server.scheme=http - traefik.http.routers.ubooquity.tls=true - traefik.