HAProxy image with a web service to manage certificates
1.1K
This is a custom build which contains:
/var/log/haproxy.log and /var/log/haproxy.errWeb service usage:
http://ha_proxy:7878/restart/
http://ha_proxy:7878/status/
http://ha_proxy:7878/issue/example.com
http://ha_proxy:7878/renew/example.com
http://ha_proxy:7878/revoke/example.com
# If specified will issue a certificate for that domain on start:
DOMAIN="example.com"
# Email to use for Let's Encrypt
EMAIL="[email protected]"
services:
haproxy:
image: intellisrc/haproxy
environment:
DOMAIN: example.com
EMAIL: [email protected]
ports:
- published: 80
target: 80
protocol: tcp
mode: host
- published: 443
target: 443
protocol: tcp
mode: host
volumes:
- type: bind
source: /mnt/docker/haproxy
target: /etc/haproxy
- type: bind
source: /mnt/docker/logs/haproxy
target: /var/log
- type: bind
source: /mnt/docker/static
target: /var/www
- type: bind
source: /mnt/docker/certbot
target: /etc/letsencrypt
networks:
- ha
deploy:
mode: replicated
replicas: 10
endpoint_mode: dnsrr
placement:
constraints:
- node.labels.proxy == true
networks:
ha:
driver: overlay
Content type
Image
Digest
sha256:e183cbb82…
Size
33.7 MB
Last updated
9 months ago
docker pull intellisrc/haproxy