OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Access docker container behind HAProxy -> 503
« previous next »
  • Print
Pages: [1]

Author Topic: Access docker container behind HAProxy -> 503  (Read 4491 times)

cwt

  • Newbie
  • *
  • Posts: 46
  • Karma: 1
    • View Profile
Access docker container behind HAProxy -> 503
« on: May 01, 2021, 11:58:15 am »
Howdy!

I'm running the current HAProxy plugin along with the LE plugin, SSL offloading, etc. Everything works (nextcloud VMs, Synologys, etc.) except access to docker containers.

I'm trying to access a docker container (Bitwarden_RS) but only receive a 503 from HAProxy when trying to access it via HAProxy (external access). It's IP is definded both as a real server and in the backend settings. I can access it internally by browser with no problems (simply entering the IP of the docker container).

I usually set "host matches" as rules/conditions but this doesn't work.

Are there any special options in rules and conditions to access docker containers?

The container is started with ports 80:80 and 3012:3012 (web sockets enabled). I already tried port 3012 in HAProxy but the result is the same.

Thx and cheers  ;)
Logged

cwt

  • Newbie
  • *
  • Posts: 46
  • Karma: 1
    • View Profile
Re: Access docker container behind HAProxy -> 503
« Reply #1 on: May 20, 2021, 06:57:26 pm »
*facepalm*

Ok, figured it out. Being lazy I duplicated the settings from an already existing „real server“ and simply forgot to untick the option „SSL“ which was activated  :-[ :P   :o

Errm…
Logged

ckocank

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: Access docker container behind HAProxy -> 503
« Reply #2 on: April 08, 2023, 06:45:59 pm »
thank you I'm having the exact same problem :)
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Access docker container behind HAProxy -> 503
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2