title: Docker - Can't access Django server
body: <p>I can not connect to django through the port in the container. I'm using this address: 0.0.0.0.:8000 and see: <a href="http://joxi.ru/Dr8MeGLhkBWnLm" rel="nofollow noreferrer">http://joxi.ru/Dr8MeGLhkBWnLm</a>. I'm creating an image and a container with one command: 'docker-compose up -d'.</p>
  <pre><code>$ docker ps
  CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
  4fea50856eef        docker_web          &quot;python manage.py ru…&quot;   13 seconds ago      Up 11 seconds       0.0.0.0:8000-&gt;8000/tcp   docker_web_1
  </code></pre>
  <p>docker-compose.yaml</p>
  <pre class="lang-yaml prettyprint-override"><code>    version: '3'
  
      services:
        web:
          build:
            context: .
            dockerfile: /django.testsite/Dockerfile
          ports:
            - &quot;8000:8000&quot;
  </code></pre>
  <p>Dockerfile</p>
  <pre><code>    FROM python:3
  
      RUN easy_install pip
      RUN pip install django==1.9.12
      RUN pip install requests
  
      ADD . /.
      WORKDIR /django.testsite
  
      CMD [&quot;python&quot;, &quot;manage.py&quot;, &quot;runserver&quot;, &quot;8000&quot;]
  </code></pre>
  <p>How do I solve this issue?</p>