https://github.com/zokradonh kopanio docker with haproxy in front
-
Hi,
I am trying to install the kopano-docker container zoo on a machine which already has a haproxy rev. proxy setup to handle the ssl termination. This rev. proxy forwards incoming requests based on the host request header to different containers. They receive the web requests on local ports (e.g. 127.0.0.1:84)I need some hints how to change the default configuration of the container startup:
- ssl termination with LE certs is provided by haproxy on the docker host. The included proxy container (/web) is not needed
- maybe kopano_kopano_ssl_1 is also obsolete in this case?
- incoming requests on port 443 are received by haproxy and forwarded to a local port of the container ( /webapp if I understand the architecture correctly?)
Currently I get this:
root@develd:/opt/kopano-docker# docker-compose up
kopano_kopano_kustomer_1 is up-to-date
Starting kopano_kopano_ssl_1 …
kopano_ldap is up-to-date
Starting kopano_web_1 …
kopano_db is up-to-date
kopano_mail is up-to-date
Starting kopano_web_1 … errorStarting kopano_kopano_ssl_1 … done
f04444dbda200fdf0f015b682e77dde1e7f2cd735788): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in useERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint kopano_web_1 (86abd70aced5002100b8f04444dbda200fdf0f015b682e77dde1e7f2cd735788): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use
ERROR: Encountered errors while bringing up the project.Docker version 19.03.5, docker-compose version 1.25.4
Thanks for some ideas ;-)
Thommie -
Hi @thommierother,
similar questions have been discussed in that project already, just have a look at the GitHub issues.
You can find an example configuration for traefik in the examples folder, should be easy to adapt for other proxies: https://github.com/zokradonh/kopano-docker/blob/master/examples/traefik-proxy-subdomain.md
-
Hi,
yes, that looks pretty similar, I will adapt it and return here if necessary … Maybe also another md doc would be useful then for others … -
@thommierother said in https://github.com/zokradonh kopanio docker with haproxy in front:
Maybe also another md doc would be useful then for others …
A pr from you with this would be welcome.