Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4740

How to make haproxy 2.0.14 work via mount for external file

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>