Docker
The Roxy-WI Docker image does not come with the HAProxy service pre-installed. You will need to install it separately on your server using SSH.
We do not recommend using the Docker image in a production environment; it is intended for informational purposes only.
Deploy Roxy-WI as a service in Docker Swarm:
docker service create --detach=false \
--name roxy-wi \
--mount type=volume,src=roxy-wi-data,dst=/var/roxy-wi/lib \
--mount type=volume,src=roxy-wi-conf,dst=/etc/roxy-wi \
--mount type=volume,src=r/etc/yum.repos.d/,dst=/etc/yum.repos.d/ \
-p 443:443 -p 8765:8765 registry.roxy-wi.org/roxy-wi
or
docker run -d --name roxy-wi \
-p 443:443 -p 8765:8765 registry.roxy-wi.org/roxy-wi
Add a license key if available.
By default, Roxy-WI uses an SQLite database. To use a MySQL database instead, please enable it in the production environment:
enable - the default is 0 ( disabled, use SQLITE ) turn on change to 1
mysql_user - the default is "roxy-wi"
mysql_password - the default is "roxy-wi"
mysql_db - the default is "roxywi"
mysql_host - the default is 127.0.0.1
mysql_port - the default is 3306
To start using MySQL, you need to create a database and a user, and then grant the necessary privileges to that user:
MariaDB [(none)]> create user 'roxy-wi'@'%';
MariaDB [(none)]> create database roxywi;
MariaDB [(none)]> grant all on roxywi.* to 'roxy-wi'@'%' IDENTIFIED BY 'roxy-wi';
MariaDB [(none)]> grant all on roxywi.* to 'roxy-wi'@'localhost' IDENTIFIED BY 'roxy-wi';
After creating the database, run the create_db.py script inside the Roxy-WI container. The script is located in the /var/www/haproxy-wi/ folder.
The versions of the Docker images correspond to those of the RPM packages:
name "roxy-wi"
tags
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"