forked from ixc/letsencrypt-dockercloud-haproxy
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
33 lines (33 loc) · 883 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "2"
services:
haproxy:
build: haproxy
links:
- letsencrypt
- web
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes_from:
- letsencrypt
letsencrypt:
build: letsencrypt
environment:
- DOMAINS=foo.com,www.foo.com;ba.com,www.bar.com
- LOAD_BALANCER_SERVICE_NAME=haproxy
# THIS IS CRUCIAL when testing to avoid reaching the 5 certificates
# limit per domain. You'll end up waiting a week before being able
# to regenerate a valid cert if you don't backup the once generated
- OPTIONS=--staging
expose:
- "80"
volumes:
- ./letsencrypt_backup:/etc/letsencrypt
web:
environment:
- FORCE_SSL=yes
- VIRTUAL_HOST=http://*,https://*
image: dockercloud/hello-world:latest