title: Define host and path frontend rule for Traefik
body: <p>I am trying to use Traefik to deploy proxy multiple applications in my Docker Swarm mode cluster.</p>
  
  <p>I have got it so that it proxies a named Host but I want  it to proxy on a named Host and Path, but I cannot work out the labels I need to use.</p>
  
  <p>This is the <code>docker service</code> command I am using:</p>
  
  <pre><code> docker service create \
                         \
      --label "traefik.port=9000" \
      --label "traefik.docker.network=traefik-net" \
      --label "traefik.frontend.rule=Host:`hostname -f`" \
      --label="traefik.backend=portainer" \
                                          \
      --constraint "node.role == manager" \
      -p 9000:9000 \
      --mount "type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock" \
      --name portainer \
      portainer/portainer
  </code></pre>
  
  <p>If the host is <code>dummy.localhost</code> then I am able to hit the portainer app on <code>http://dummy.localhost</code>.  However I want to modify it so that I have to use <code>http://dummy.localhost/portainer</code>.</p>
  
  <p>I have seen that there are ways to do this when using a toml file for Traefik, but I am using watch mode and labels on the docker services I deploy.</p>
  
  <p>How can I combine multiple front end rules in my labels so that this (and any other) application can be proxied on a hostname and a path?</p>