Setup:

Debian running podman. Containers and compose files are managed with Dockge. qBit and Gluetun are on a single compose file and all qBit traffic is routed through Gluetun.

qBit seems to starts first before Gluetun is fully set up and qBit doesn’t see the open port. Every time I start them together, I have to manually restart qBit again once Gluetun is ready. Once it’s restarted, it shows as open and connected again.

I tried looking for ways to delay startup in a compose file but I didn’t get any results.

Is there a solution to this?

https://pastebin.com/kgqt8aJ7

  • jws_shadotak@sh.itjust.worksOP
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    4 months ago

    I added this to my qBit section:

        depends_on:
          gluetun:
            condition: service_healthy
            restart: true
    

    It caused an error with gluetun somehow

    • GravitySpoiled@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      You only need depends_on: gluetun. Did you observe the logs at boot? Do they still show that qbit starts first?

      • jws_shadotak@sh.itjust.worksOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        qBit starts second but Gluetun isn’t finished and doesn’t open the port for another few seconds, causing this problem