Container running haproxy and have support fort letsencrypt, haproxy/letsencrypt data is persistent
5.3K
Multiple processes inside the container managed by supervisord:
Without letsencrypt
$ docker run -dt \
--name haproxy \
--hostname haproxy \
-p 80:80 \
-p 443:443 \
-v /tmp/test:/data \
robostlund/haproxy-letsencrypt:latest
With letsencrypt
$ docker run -dt \
--name haproxy \
--hostname haproxy \
-p 80:80 \
-p 443:443 \
-v /tmp/test:/data \
-e LETSENCRYPT_ENABLED='yes' \
-e LETSENCRYPT_DOMAINS='domain1.se,domain2.se' \
-e LETSENCRYPT_EMAIL='[email protected]' \
robostlund/haproxy-letsencrypt:latest
Without letsencrypt
- name: create container
docker_container:
name: 'haproxy'
hostname: haproxy
image: robostlund/ robostlund/haproxy-letsencrypt:latest
recreate: yes
pull: true
ports:
- "80:80" # http
- "443:443" # https
volumes:
- '/tmp/data:/data'
With letsencrypt
- name: create container
docker_container:
name: 'haproxy'
hostname: haproxy
image: robostlund/ robostlund/haproxy-letsencrypt:latest
recreate: yes
pull: true
ports:
- "80:80" # http
- "443:443" # https
volumes:
- '/tmp/data:/data'
env:
LETSENCRYPT_ENABLED='yes' \
LETSENCRYPT_DOMAINS='domain1.se,domain2.se' \
LETSENCRYPT_EMAIL='[email protected]' \
You can run hatop like this:
docker exec -it <container_id_or_name> /usr/local/bin/hatop
Content type
Image
Digest
Size
274.4 MB
Last updated
over 8 years ago
docker pull robostlund/haproxy-letsencrypt