I am trying to run haproxy with docker. I followed the instructions below:
https://hub.docker.com/_/haproxy/
I managed to create a docker image, but after trying to launch it.
using
docker run -d --link another_container:another_container --name mc-ha -v haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro my_own_haproxy:latest
I get this error:
[ALERT] 298/054910 (1) : [haproxy.main()] No enabled listener found (check for 'bind' directives) ! Exiting.
I searched for it, but the only thing I found was the ha proxy source code.
Here is my haproxy.cfg
global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy group haproxy daemon
EDIT: Btw I also tried changing the backend node url to my docker ip address. But still no luck.
source share