Comment on 2 docker containers on same port?

<- View Parent
breadsmasher@lemmy.world ⁨1⁩ ⁨year⁩ ago

On my phone so I haven’t got the access to give you a good example.

You see in your compose file in your original post you have ‘8080:8080’ under ports?

You should be able to add another line, the left hand side of the colon exposing a different port like so

ports: 
    - ‘8080:8080’
    - ‘9090:9090’ 

then one service you can access on port 8080 and the other you access on 9090

then under each service you want to expose you add the other port mappings

qtorrent:
    ports: 
        - 8080:8080

sabnzb:
    ports: 
        - 9090:8080

source
Sort:hotnewtop