-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (51 loc) · 1.81 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.3'
services:
certbot:
image: theohbrothers/docker-certbot-dns-cron:v1.10.1-digitalocean
environment:
###########
# Certbot #
###########
# Whether to use production or staging LetsEncrypt endpoint. 0 for production, 1 for staging
- STAGING=0
# RSA Key size
- RSA_KEY_SIZE=4096
# Domains (delimited by ';')
- DOMAINS=foo.example.com;bar.example.com
# Admin Email's Local-part for LetsEncrypt expiry-notification emails
# E.g. use "admin" for notification emails sent to "admin.example.com"
# See https://en.wikipedia.org/wiki/Email_address for more information on the Local-part
- DOMAIN_ADMIN_EMAIL_LOCALPART=admin
# Certbot DNS Plugin
- PLUGIN_DNS_PROVIDER=digitalocean
- PLUGIN_DNS_CREDENTIALS_FILE=/etc/letsencrypt/certbot_dns_digitalocean_credentials.ini
- PLUGIN_DNS_PROPAGATION_SECONDS=10
##########
# Deploy #
##########
# Whether to deploy certs. Omit environment variable to disable
- DEPLOY_CERTS=1
##########
# Reload #
##########
# Container name to reload after signing and obtaining cert. Omit environment variable to disable
- TARGET_CONTAINER_NAME=nginx-proxy-docker-gen
##########
# Report #
##########
# Whether to email the certbot report on successful signing of certs
- EMAIL_REPORT=1
# Email vars to send Report
- EMAIL_PASSWORD=myPassword
- SMTP_SERVER=foo.smtp.com
- SMTP_PORT=587
volumes:
- nginx-proxy-certs:/certs/:rw
- ./data/letsencrypt:/etc/letsencrypt/:rw
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
nginx-proxy-certs:
external: true