title: Accessing Docker container from outside/browser
body: <p>My Docker Compose config: </p>
  
  <pre><code>
  version: "3"
  services:
    django1:
      build: .
      command: "python ./test1/manage.py runserver"
      ports:
        - "8006:8000"
      expose:
        - "8006"
      networks:
        main_network:
          ipv4_address: 20.20.0.3
    django2:
      build: .
      command: "python ./test2/manage.py runserver"
      ports:
        - "8007:8000"
      expose:
        - "8007"
      networks:
        main_network:
          ipv4_address: 20.20.0.2
  
  networks:
    main_network:
      driver: bridge
      ipam:
        config:
          - subnet: 20.20.0.0/24
  
  </code></pre>
  
  <p>and this is my command for accessing Docker from outside </p>
  
  <pre><code>docker run --name testname -p 8077:8007 my_image_name
  </code></pre>
  
  <p>But still when I visit from browser <strong>20.20.0.2:8077</strong> but it does not work</p>
  
  <p>What am I doing wrong?</p>