https://github.com/mietzen/lego-certbot
Docker lego ACME certbot alternative
https://github.com/mietzen/lego-certbot
certbot certbot-dns docker docker-compose lego
Last synced: over 1 year ago
JSON representation
Docker lego ACME certbot alternative
- Host: GitHub
- URL: https://github.com/mietzen/lego-certbot
- Owner: mietzen
- Created: 2023-04-11T15:45:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T15:59:05.000Z (over 1 year ago)
- Last Synced: 2025-01-23T12:15:43.780Z (over 1 year ago)
- Topics: certbot, certbot-dns, docker, docker-compose, lego
- Language: Dockerfile
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lego-Certbot
Certbot alternative based on the amazing [LEGO](https://github.com/go-acme/lego).
## Usage
Cloudflare + NGINX example:
```yaml
version: "3"
services:
cloudflare-lego-certbot:
image: mietzen/lego-certbot:v4.13
restart: always
environment:
- CLOUDFLARE_DNS_API_TOKEN=YOUR_TOKEN
- EMAIL='your@mail.com'
- DNS_PROVIDER=cloudflare
- DOMAINS='your.domain.com,your2nd.domain.com'
# dns=1.1.1.1 # Optional
volumes:
- certs:/data
nginx:
image: nginx:stable-apline
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl.conf:/etc/nginx/ssl.conf:ro
- ./nginx/proxy.conf:/etc/nginx/proxy.conf:ro
- ./nginx/dhparams.pem:/etc/nginx/dhparams.pem:ro
- certs:/etc/ssl
command: "/bin/sh -c 'while :; do sleep 12h & wait $${!}; nginx -s reload; echo 'reloading config'; done & nginx -g \"daemon off;\"'"
restart: unless-stopped
networks:
- nginx
networks:
nginx:
external: true
volumes:
certs:
```
For other DNS Providers see: [LEGO DNS PROVIDERS](https://go-acme.github.io/lego/dns/)
And set the needed environment variables.