title: Can't connect to docker redis
body: <p>I have a docker-compose file which contains next image:</p>
  
  <pre><code>redis:
      image: redis
      container_name: redis
      ports:
        - 6379:6379
  </code></pre>
  
  <p>I expected that container name will be exposed and i'll be able to connect using redis:6379 uri, but i can't do it. Here's the config:</p>
  
  <pre><code>fun jedisLocalConnectionFactory(): JedisConnectionFactory {
      val jedisConFactory = JedisConnectionFactory()
      jedisConFactory.hostName = "redis"
      jedisConFactory.port = 6379
      return jedisConFactory
  }
  </code></pre>
  
  <p>How to expose this redis service and connect to it?I've tried a lot of different combinations without any luck.. </p>