title: Traefik - Unable to expose redis docker containers with the same port for different domains
body: <p>I'm trying to set up a Redis with docker-compose for different environments.
  Therefore I need to expose two domains with traefik on the same port:</p>
  
  <ul>
  <li>domain.com:6379</li>
  <li>domain-dev.com:6379</li>
  </ul>
  
  <p>I can't expose those ports on the container, because they are running on the same server.</p>
  
  <p>My docker-compose file (for domain-dev) looks like this:</p>
  
  <pre><code>version: '2' 
  services:
  redis:
    container_name: redis-signalr-dev
  image: redis
  volumes:
    - ./redis-signalr-data:/data
  restart: always
  labels:
    - traefik.enable=true
    - traefik.backend=redis-signalr-dev
    - traefik.frontend.rule=Host:domain-dev.com
    - traefik.port=6379
    - traefik.docker.network=traefik_default
    - traefik.frontend.entryPoints=redis
  networks:
    - traefik_default
  volumes:
    redis-signalr-data:
  
  networks: 
    traefik_default:
      external: true
  </code></pre>
  
  <p>I also tried to configure the treafik to use the following endpoint:</p>
  
  <pre><code>--entrypoints='Name:redis Address::6379'
  </code></pre>
  
  <p>When connecting to "domain-dev.com:6379" a connection cannot be astablished.</p>
  
  <p>Does anyone know a solution to this problem?</p>