scrapy image on centos 7.3 cannot connect to remote redis

I want to scale my scrapy so I started to distribute my scrapy image on multiple servers. I have got a VPS with centos 7.3 and after configuring that, I used below docker-compose to bring it up:

version: '2'
services:
    image: istresearch/scrapy-cluster:crawler-1.2.1
    volumes:
      - logs:/var/log/scrapy-cluster
      - ./crawler/settings.py:/usr/src/app/crawling/localsettings.py
    network_mode: host
    environment:
      KAFKA_HOSTS: REMOTE_HOST:9092
      ZOOKEEPER_HOSTS: REMOTE_HOST:2181
      REDIS_HOST: REMOTE_HOST
    restart: always
volumes:
  logs:

I have also configured the localsetting.py for connecting to remote server. After bring it up I face the error that Cannot connect to redis server. I have done all this on centos 7.2 and all things was right and it is working. Is this because of version of my OS? Is there anybody who has faced a problem like this? I would appreciate any help! thanks!

Source: Docker Questions