HAProxy community

How to make haproxy 2.0.14 work via mount for external file

Hi,

i am using haproxy version 2.0.14.
Took the source code , built using makefile. if i run the executables
I am able pass an external haproxy.cfg with -f option as below.
==>> “./haproxy -f ./haproxy.cfg”

My intention to build an docker image and pass the external haproxy.cfg file and ssl cert files on the docker run command.

But my issue is that runtime does not recognize outside mounted file.

Note, that i was able to do the same with official docker image from https://hub.docker.com/_/haproxy with below commands

============================================
docker run --name demo-haproxy1
-v /haproxy:/usr/local/etc/haproxy:ro -v /haproxy:/usr/local/etc/cert.crt:ro -p 449:449 haproxy:latest

===========================================

Can anybody help pls and let me know how to go about it haproxy 2.0.14 version?

regards
Tridev