How to install HAProxy in Docker

Installing services in Docker containers

With Roxy-WI you can easily install HAProxy, Nginx and Apache in Docker containers since 5.3.0 version. Go to the Servers page and Click on the Proxy Installation button. In the installation menu select the checkbox "Install as a Docker container" for HAProxy, Nginx, Apache or for all the three services and click on the Install button.


By default the containers for HAProxy, Nginx and Apache have the same names (haproxy, nginx and apache respectively). If you need to change the name, go to the Settings page and change the value of haproxy_container_name (or nginx_container_name/apache_containter_name).

The settings for containerized services are stored in configuration files on the server (/etc/haproxy/ and /etc/nginx/conf.d). If you need to change the default paths, change the values of haproxy_dir, apache_dir or nginx_dir parameters on the Settings page.

Managing services in containers

Roxy-WI allows managing containerized HAProxy, Nginx(since 5.3.0 version) and Apache(since 6.0 version) via the graphical interface. The containers are added as it is described here. Go to the Servers page and click on the Add button. Fill in the fields of the form that will open and click Add. Go to HAProxy => Overview page. You should see the list of the available HAProxy servers appear on the screen. Each server is represented by a card as it is shown on the screenshot below:


Find your server in the list. Click on the three_lines sign in the upper right corner of the card. Select the Dockerized HAProxy checkbox in the window that will open and press the Save button.

For Nginx and Apache the procedure is quite the same: go to the Nginx => Overview page, select the card of the server and check the Dockerized Nginx(or Dockerized Apache) checkbox.

Go to TOP

Was this article helpful?

Yes, thanks!
Go to TOP
Go back