Hello everybody! I have the following issue: I have two countainers, let’s call them C1 and C2, and they both expose the same port, let’s say 1234. I want to route both of them through a gluetun container. to do this, I added

network_mode: container:gluetun

at each container. But they both expose the same port, so there’s a conflict. Without routing them though gluetun I can just

ports:
  - 1235:1234

but using network_mode this cannot be done. What can I do? The only thing that comes to my mind is to use two gluetun containers, but I’d rather use a single one

thanks in advance!

  • tubbadu@lemmy.kde.socialOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days ago

    If you can’t configure the ports of your services then there’s no real recourse FWIU

    Sadly this is my case… I guess I’ll have to give up then thank you very much!