- Refactored HAProxy configuration files, templates, and paths to use `/etc/easyhaproxy` instead of `/etc/haproxy`. - Updated Dockerfile to generate DH params and placeholder certificates in the new configuration directory. - Added health check support with timeout to `DockerComposeFixture` in E2E test utilities. - Adjusted tests, templates, and plugins to use the new `Consts`-based configuration paths. - Introduced pytest fixtures for environment isolation and temporary directory management.
35 lines
787 B
YAML
35 lines
787 B
YAML
services:
|
|
easyhaproxy:
|
|
image: byjg/easy-haproxy:5.0.0
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- certs_certbot:/etc/easyhaproxy/certs/certbot
|
|
- certs_haproxy:/etc/easyhaproxy/certs/haproxy
|
|
|
|
environment:
|
|
EASYHAPROXY_DISCOVER: docker
|
|
EASYHAPROXY_LABEL_PREFIX: easyhaproxy
|
|
EASYHAPROXY_CERTBOT_EMAIL: changeme@example.org
|
|
EASYHAPROXY_SSL_MODE: "default"
|
|
HAPROXY_CUSTOMERRORS: "true"
|
|
HAPROXY_USERNAME: admin
|
|
HAPROXY_PASSWORD: password
|
|
HAPROXY_STATS_PORT: 1936
|
|
|
|
ports:
|
|
- "80:80/tcp"
|
|
- "443:443/tcp"
|
|
- "1936:1936/tcp"
|
|
|
|
networks:
|
|
- easyhaproxy
|
|
|
|
volumes:
|
|
certs_certbot:
|
|
external: true
|
|
certs_haproxy:
|
|
external: true
|
|
|
|
networks:
|
|
easyhaproxy:
|
|
external: true
|