Help needed with docker/swag set up

  • My router forwards port 80 to 81 and 443 to 444 as per guide. The swag container returns it. ports: - 444:443 - 81:80

    I created swag-net and put it in the grocy container as per guide. Not sure if I created the swag-net bridge correctly, though. Or should I use swag_default which is created when swag is installed?


    So, normally, I expect to use subdomain.domain.com to go to the router, then it should be forwarded to the internal server ip for my OMV server, and Swag should do the rest. But my subdomains give an connection refused error.


    When I remove the port forwards on my router, the subdomains end up on the landing page of my router.

    When I forward another port to OMV on my router and use the public ip with that port number, I can access OMV. Same goes for grocy with it's respective port forwarded.

    • Official Post

    My router forwards port 80 to 81 and 443 to 444 as per guide. The swag container returns it. ports: - 444:443 - 81:80

    I created swag-net and put it in the grocy container as per guide. Not sure if I created the swag-net bridge correctly, though. Or should I use swag_default which is created when swag is installed?

    You can do it both ways. But both containers must have use the same network.

    So, normally, I expect to use subdomain.domain.com to go to the router, then it should be forwarded to the internal server ip for my OMV server, and Swag should do the rest. But my subdomains give an connection refused error.

    Have you configured the services in swag? What does the swag log tell you?

  • Have you configured the services in swag? What does the swag log tell you?

    If you mean if I copied the proxy conf file, yes, I did for grocy.


    I did however just redo that part after which my omv popped up on the domain name with a certificate. I also removed the port forwards and reentered those on my router.


    Log now says: Sub-domains processed are: omv.my-domain.tld,grocy.my-domain.tld

    So that is a good thing.


    But I find it strange, as I did not change anything. I used the sample file, changed ports, but that is it. Maybe there was a typo (space) where it shouldn't be before in the grocy conf file.


    Grocy itself now gives a bad gateway error. I suspect that has to do with the network.

  • Grocy itself now gives a bad gateway error. I suspect that has to do with the network.

    Got it fixed by recopying the proxy conf file and a couple of restarts....

    Unfortunately, I am not sure what the real cause was, but I am happy I got it fixed.


    Thank you all for helping me out. Amazed by the activity of the forum.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!