logo

Docker

Getting the Docker image and deploy


First login to the 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. Please indicate the purpose of the donation, if any.

Deploy



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


DB settings


Default the Haproxy-WI uses the Sqlite, if you want to use the MySQL enable it in the env
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 the MySQL supports:
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';


The Docker images versions


The Docker images uses the same versions as the RPM packages, for example:
	
name	"haproxy-wi"
tags	
0	"latest"
1	"3.7.4"
2	"3.8"
3	"3"
4	"3.8.1"
5	"3.8.2"
6	"3.9"
7	"3.9.1"
8	"3.9.2"
9	"3.9.4"
10	"3.10.0.0"
11	"3.10.1.0"
12	"3.11.0.0"