Skip to content

Commit

Permalink
haproxy config through env
Browse files Browse the repository at this point in the history
  • Loading branch information
ebedarev committed Oct 8, 2018
1 parent 6625c6e commit 5530642
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ done

cp -rf /opt/haproxy/error-pages /etc/haproxy/

exec haproxy -f /etc/haproxy/haproxy.cfg -W -db
if [ -z "$CONFIG" ]; then
CONFIG="/etc/haproxy/haproxy.cfg"
fi

exec haproxy -f $CONFIG -W -db

0 comments on commit 5530642

Please sign in to comment.