Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.64 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.64 KB

Docker HAProxy with DeviceAtlas

Docker HAProxy with DeviceAtlas is a dockerized version of HAProxy with DeviceAtlas for device detection on the web. The detailed information on how to compile and use DeviceAtlas HAProxy module is available here.

Prerequisite

  • Download HAProxy module of DeviceAtlas API & Data from their official site.

  • Copy/Save the DeviceAtlas API & Data files into docker-haproxy-deviceatlas directory for building Docker image.

Build the container

$ docker build -t haproxy-deviceatlas .

Run the container

$ docker run -d --name haproxy-da -v /path/to/haproxy/config:/usr/local/etc/haproxy/config:ro haproxy-deviceatlas

You will also need to publish the ports where your HAProxy is listening on to the host by specifying the -p option, for example -p 8080:80 to publish port 8080 of the container host to port 80 in the container.

Reloading config

To be able to reload HAProxy configuration, you can send SIGHUP to the container:

$ docker kill -s HUP haproxy-da

License

View license information for the software contained in this image.

View DeviceAtlas license information.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).