Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eduinlight/lego-route53-auto
Docker compose configuration to create tls certificates for https. Automate certificates renovation.
https://github.com/eduinlight/lego-route53-auto
alpine crontab docker docker-compose https lego
Last synced: 2 days ago
JSON representation
Docker compose configuration to create tls certificates for https. Automate certificates renovation.
- Host: GitHub
- URL: https://github.com/eduinlight/lego-route53-auto
- Owner: eduinlight
- License: mit
- Created: 2024-06-23T17:34:16.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-25T19:00:56.000Z (7 months ago)
- Last Synced: 2024-11-17T06:36:06.070Z (2 months ago)
- Topics: alpine, crontab, docker, docker-compose, https, lego
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lego route53 automated
- Docker configuration to create tls certificates for https.
- Automatic certificates renovation.## Tools
- [Lego](https://go-acme.github.io/lego/)
- [crond](https://www.linux.org/docs/man8/cron.html)## Environment variables
```BASH
# Email value to use in the certificate creation
CERTIFICATE_EMAIL="email here"
# Domain where the certificate is available
DOMAIN="domain here"# Aws iam credentials. Follow lego documentation for route53
# https://go-acme.github.io/lego/dns/route53/
#
AWS_ACCESS_KEY_ID="your key id"
AWS_SECRET_ACCESS_KEY="your secret access key"
AWS_REGION="aws region"
AWS_HOSTED_ZONE_ID="your hosted zone id"
```## Example with `docker-compose`
```YAML
services:
cron:
image: lego-route53-auto
container_name: lego-route53-auto
build:
context: .
restart: unless-stopped
volumes:
- ./certs:/root/certs
environment:
- CERTIFICATE_EMAIL=${CERTIFICATE_EMAIL}
- DOMAIN=${DOMAIN}
- 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}
```