logo

Docker

Docker

ENVs

MYSQL_ENABLE - the default is 0 ( disabled, use SQLITE ) turn on change to 1
MYSQL_USER - the default is "haproxy-wi"
MYSQL_PASS - the default is "haproxy-wi"
MYSQL_DB - the default is "haproxywi"
MYSQL_HOST - the default is 127.0.0.1
		

For MySQL support:
MariaDB [(none)]> create user 'haproxy-wi'@'%';
MariaDB [(none)]> create database haproxywi;
MariaDB [(none)]> grant all on haproxywi.* to 'haproxy-wi'@'%' IDENTIFIED BY 'haproxy-wi';
MariaDB [(none)]> grant all on haproxywi.* to 'haproxy-wi'@'localhost' IDENTIFIED BY 'haproxy-wi';


Docker
First login to Haproxy-WI registry:

$ docker login registry.haproxy-wi.org:5000


Before uses registry you should donate to support project on Patreon or on PayPal and I will send you credentials for access. Actual prices you can see on Patreon. But you can donate as many as you can or as you want


docker service create --detach=false --name haproxy-wi -e MYSQL_ENABLE=1 -e MYSQL_USER="haproxy-wi" -e MYSQL_PASS="haproxy-wi" --mount type=volume,src=haproxy-wi,dst=/var/www/haproxy-wi/app -p 443:443 registry.haproxy-wi.org:5000/haproxy-wi

or

docker run -d --name haproxy-wi -v haproxy-wi:/var/www/haproxy-wi/app -p 443:443 registry.haproxy-wi.org:5000/haproxy-wi


Default Haproxy-WI use Sqlite, if you want use MySQL enable in env