haproxy:
image: haproxytech/haproxy-debian:2.8
volumes:
- - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
+ - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:rw
- ./sharding.map:/usr/local/etc/haproxy/sharding.map:ro
sysctls:
net.ipv4.ip_unprivileged_port_start: 0
- 8080:8400
- 8401:8401
- 8404:8404
+ - 5555:5555
backend-1:
image: juplo/chat-backend:0.0.1-SNAPSHOT
backend backend_3
server b3 backend-3:8080 check
+userlist haproxy-dataplaneapi
+ user juplo insecure-password juplo
+
+program api
+ command /usr/bin/dataplaneapi --host 0.0.0.0 --port 5555 --haproxy-bin /usr/sbin/haproxy --config-file /usr/local/etc/haproxy/haproxy.cfg --reload-cmd "kill -SIGUSR2 1" --restart-cmd "kill -SIGUSR2 1" --reload-delay 5 --userlist haproxy-dataplaneapi
+ no option start-on-reload
+