Docker!
pull/19/head
Aidaho12 2018-06-06 00:20:10 +06:00
parent aac1335506
commit 228bc5418a
2 changed files with 6 additions and 1 deletions

View File

@ -68,6 +68,11 @@ For Apache do virtualhost with cgi-bin. Like this:
</FilesMatch>
</VirtualHost>
```
# Doker
```
docker service create --detach=false --name haproxy-wi --mount type=volume,src=haproxy-wi,dst=/var/www/haproxy-wi/app -p 8080:80 aidaho/haproxy-wi
```
# Database support
Default Haproxy-WI use Sqlite, if you want use MySQL enable in config, and create database:

View File

@ -57,7 +57,7 @@ else
yum -y install epel-release
fi
yum -y install git ncat net-tools lshw python34 dos2unix python34-pip httpd mod_ssl gcc python34-devel
yum -y install git nmap-ncat net-tools lshw python34 dos2unix python34-pip httpd mod_ssl gcc python34-devel
HTTPD_CONFIG="/etc/httpd/conf/httpd.conf"
HAPROXY_WI_VHOST_CONF="/etc/httpd/conf.d/haproxy-wi.conf"
HTTPD_NAME="httpd"