pmsipilot / docker-compose-viz

Docker compose graph visualization
MIT License
888 stars 67 forks source link

Wrong display of ports #30

Closed Braintelligence closed 6 years ago

Braintelligence commented 6 years ago

Hey there,

if docker-compose looks like this:

ports:
      - "0.0.0.0:80:80"
      - "0.0.0.0:443:443"

Then the created image shows 0 as port instead of 80.

alexanderkjeldaas commented 6 years ago

I'm getting the ports, but they are labels coming from "0":

skarmavbild 2018-02-02 kl 09 14 54
jubianchi commented 6 years ago

@alexanderkjeldaas can you provide an example docker-compose.yml please ?

alexanderkjeldaas commented 6 years ago
version: '3.5'

services:

  test:
    networks:
      - test
    image: test
    ports:
      - "${TEST}:8888"

networks:
  test:
    external: true

of course in the above ${TEST} is unknown

this also produces the same output:

version: '3.5'

services:

  test:
    networks:
      - test
    image: test
    ports:
      - "0.0.0.0:80:8888"

networks:
  test:
    external: true