37 lines
786 B
YAML
37 lines
786 B
YAML
version: "3"
|
|
|
|
services:
|
|
easyhaproxy:
|
|
image: byjg/easy-haproxy:master
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- certs_letsencrypt:/certs/letsencrypt
|
|
- certs_haproxy:/certs/haproxy
|
|
|
|
environment:
|
|
EASYHAPROXY_DISCOVER: docker
|
|
EASYHAPROXY_LABEL_PREFIX: easyhaproxy
|
|
EASYHAPROXY_LETSENCRYPT_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_letsencrypt:
|
|
external: true
|
|
certs_haproxy:
|
|
external: true
|
|
|
|
networks:
|
|
easyhaproxy:
|
|
external: true
|