![]() |
VOOZH | about |
Certificate Manager with Lets Encrypt and AWS Route53 DNS Integration for Docker Flow Proxy
10K+
docker run --rm -it --name cert-manager \
-e DOMAIN_1="test.satishweb.com,test1.satishweb.com"\
-e DOMAIN_2="test2.satishweb.com"\
-e DOMAIN_3="*.satishweb.com"\
-e CERTBOT_EMAIL="[email protected]" \
-e PROXY_ADDRESS="proxy" \
-e PROXY_SEND_MAX_RETRIES="10" \
-e PROXY_SEND_RETRY_INTERVAL="30" \
-e CERT_RENEW_INTERVAL="86400" \
-e CERTBOTMODE="staging" \
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
-e AWS_REGION=${AWS_REGION} \
-e AWS_HOSTED_ZONE_ID=${AWS_HOSTED_ZONE_ID} \
-v $(pwd)/data/letsencrypt:/etc/letsencrypt \
satishweb/docker-flow-proxy-cert-manager-letsencrypt-aws-route53:latest
DOMAIN_*: Comma separated subdomains list.
CERTBOT_EMAIL: Email address used for lets encrypt registrationPROXY_ADDRESS: Comma separated list of Docker Flow Proxy addresses
proxy: Hostname of Docker Flow Proxy. It must be accessible from containerproxy.domain.com: FQDN of Docker Flow Proxyhttp://proxy:8080/v1/docker-flow-proxy/cert: API url for Docker Flow ProxyPROXY_SEND_MAX_RETRIES: Number of attempts to make to send certs to proxyPROXY_SEND_RETRY_INTERVAL: Delay between two attempts for sending certs to proxyCERT_RENEW_INTERVAL: Interval in seconds for checking for certificate renewalCERTBOTMODE: Declare this variable and lets encrypt goes into stage/test modeAWS_ACCESS_KEY_ID: AWS Access Key from AWS Console - IAMAWS_SECRET_ACCESS_KEY: AWS Secret Key from AWS Console - IAMAWS_REGION: AWS RegionAWS_HOSTED_ZONE_ID: Domain DNS Zone ID from Route53 serviceCERTMGR_DISABLE: set this to yes to disable cert manger but keep container runningPROXY_PORT: Set this to a custom number if you have changed defualt api port on Docker Flow Proxy cert-manager:
image: satishweb/docker-flow-proxy-cert-manager-letsencrypt-aws-route53
hostname: cert-manager
network:
- proxy
environment:
- DOMAIN_1="test.satishweb.com,test1.satishweb.com"
- DOMAIN_2="test2.satishweb.com"
- DOMAIN_3="*.satishweb.com"
- [email protected]
- PROXY_ADDRESS=proxy
- PROXY_SEND_MAX_RETRIES: "10"
- PROXY_SEND_RETRY_INTERVAL: "30"
- CERT_RENEW_INTERVAL: "86400"
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_REGION=${AWS_REGION}
- AWS_HOSTED_ZONE_ID=${AWS_HOSTED_ZONE_ID}
- CERTBOTMODE="staging"
# Comment above line to go in production mode
volumes:
- ./data/certs:/etc/letsencrypt
# Add your custom code to be run
# - ./app-config:/app-config
deploy:
replicas: 1
# labels:
# - com.df.servicePath=/.well-known/acme-challenge
# - com.df.notify=true
# - com.df.distribute=true
# - com.df.port=80
placement:
constraints:
- node.role==manager
# This container can be run on any swarm node
labels:
- "com.satishweb.description=Certificate Manager"
docker build . --no-cache -t satishweb/docker-flow-proxy-cert-manager-letsencrypt-aws-route53
docker run --rm -it --name cert-manager \
-e DOMAIN_1="test.satishweb.com,test1.satishweb.com"\
-e DOMAIN_2="test2.satishweb.com"\
-e DOMAIN_3="*.satishweb.com"\
-e CERTBOT_EMAIL="[email protected]" \
-e PROXY_ADDRESS="proxy" \
-e PROXY_SEND_MAX_RETRIES="10" \
-e PROXY_SEND_RETRY_INTERVAL="30" \
-e CERT_RENEW_INTERVAL="86400" \
-e CERTBOTMODE="staging" \
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
-e AWS_REGION=${AWS_REGION} \
-e AWS_HOSTED_ZONE_ID=${AWS_HOSTED_ZONE_ID} \
-v $(pwd)/data/letsencrypt:/etc/letsencrypt \
-v $(pwd)/docker-entrypoint:/docker-entrypoint \
-v $(pwd)/certbot.sh:/certbot.sh \
satishweb/docker-flow-proxy-cert-manager-letsencrypt-aws-route53:latest
Content type
Image
Digest
Size
48.9 MB
Last updated
over 5 years ago
docker pull satishweb/docker-flow-proxy-cert-manager-letsencrypt-aws-route53