Skip to content

Latest commit

 

History

History
 
 

haproxy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

HAProxy configuration for eLabFTW

This is an example config for having HAProxy in front of one or several eLabFTW's container (image: elabftw/elabimg).

Example docker-compose config

Use the official HAProxy image with a bind mount on the config folder:

services:
  haproxy:
    image: haproxy:2.2-alpine
    container_name: haproxy
    restart: always
    read_only: true
    depends_on:
      - elabftw
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - /path/to/haproxy:/usr/local/etc/haproxy:ro