forked from hamburml/docker-flow-letsencrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run
15 lines (15 loc) · 742 Bytes
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
docker service create --name letsencrypt-companion \
--label com.df.notify=true \
--label com.df.distribute=true \
--label com.df.servicePath=/.well-known/acme-challenge \
--label com.df.port=80 \
-e DOMAIN_1="('haembi.de' 'www.haembi.de' 'blog.haembi.de')"\
-e DOMAIN_2="('michael-hamburger.de' 'www.michael-hamburger.de' 'blog.michael-hamburger.de')"\
-e CERTBOT_EMAIL="michael.hamburger@mail.de" \
-e PROXY_ADDRESS="proxy" \
-e CERTBOT_CRON_RENEW="('0 3 * * *' '0 15 * * *')"\
-e CERTBOTMODE="staging" \
--network proxy \
--constraint 'node.id==<nodeId>' \
--replicas 1 \
--mount type=bind,source=/etc/letsencrypt,destination=/etc/letsencrypt hamburml/docker-flow-letsencrypt:latest