{"id":19011261,"url":"https://github.com/drakmord2/docker-nginx-certbot","last_synced_at":"2026-04-30T20:31:12.054Z","repository":{"id":44693734,"uuid":"448236522","full_name":"Drakmord2/docker-nginx-certbot","owner":"Drakmord2","description":"Docker boilerplate for Nginx + Certbot on non-interactive systems","archived":false,"fork":false,"pushed_at":"2022-01-31T00:12:15.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T15:51:30.172Z","etag":null,"topics":["aws","certbot","docker","nginx"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Drakmord2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-15T09:40:46.000Z","updated_at":"2022-01-31T00:16:08.000Z","dependencies_parsed_at":"2022-09-12T13:41:19.382Z","dependency_job_id":null,"html_url":"https://github.com/Drakmord2/docker-nginx-certbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Drakmord2/docker-nginx-certbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Fdocker-nginx-certbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Fdocker-nginx-certbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Fdocker-nginx-certbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Fdocker-nginx-certbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drakmord2","download_url":"https://codeload.github.com/Drakmord2/docker-nginx-certbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Fdocker-nginx-certbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32476682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","certbot","docker","nginx"],"created_at":"2024-11-08T19:13:54.947Z","updated_at":"2026-04-30T20:31:12.037Z","avatar_url":"https://github.com/Drakmord2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker-Nginx-Certbot\n\nGenerating TLS certificates through [`Certbot`][1] for a dockerized web application can be tricky and require manual configurations, specially on a host machine without terminal access (e.g. AWS Elastic Beanstalk).\n\nOne could setup a load balancer (e.g. AWS ELB) that deals with the TLS certificates, but for single instance systems that may be an overkill/expensive solution.\n\nThis project aims to remove the complexity of this task by deploying a Docker container that will manage creation and renewal of TLS certificates automatically.\n\n# Usage\n\nThis is a boilerplate, therefore it needs to be integrated into your project. The files and folders of this project have the `-dnc` suffix so it's harder to overwrite any of your files by accident.\n\n## Before you start\n\n- This guide expects you to already own a domain which points at the correct IP address, and that you have both port 80 and 443 correctly forwarded if you are behind NAT.\n\n- The `docker-compose-dnc.yml` example file has the necessary structure to build the project correctly. You can just port the necessary parts to your own docker-compose file or just update it with your api service.\n\n- The `nginx-certbot` service should be able to reach the api service, usually thats achieved by placing both services on the same Docker network.\n\nWhen you're happy with you configuration just run:\n\n```\ndocker-compose -f \u003cyour-final-docker-compose.yml\u003e up\n```\n\n---\n\n## Docker Environment\n\n### Required\n\n- `DOMAIN`: The domain that will receive the certificate.\n- `CERTBOT_EMAIL`: Your e-mail address. Used by Let's Encrypt to contact you in case of security issues.\n\n### Optional\n\n- `API_DOCKER_SERVICE`: Docker service name for your API. Used to configure reverse proxy. (default: `production-api`)\n- `API_DOCKER_PORT`: Docker container port for your API. Used to configure reverse proxy. (default: `8080`)\n- `STAGING`: Set to `1` to use Let's Encrypt's staging servers (default: `0`)\n- `FORCE_RENEWAL`: Set to `1` to force Certbot to renew the certificate, even if it isn't expired. [Beware of rate limits] (default: `0`)\n- `RENEWAL_INTERVAL`: Time interval between Certbot's renewal checks (default: `12h`)\n- `RSA_KEY_SIZE`: The size of the RSA encryption keys (default: `2048`)\n- `USE_ECDSA`: Set to `0` to have certbot use RSA instead of ECDSA (default: `1`)\n- `ELLIPTIC_CURVE`: The size/curve of the ECDSA keys (default: `secp256r1`)\n\n### Advanced\n\n- `DEBUG`: Set to `1` to enable debug messages and use the `nginx-debug` binary (default: `0`)\n\n# Acknowledgments\n\nThis repository is heavily based on [`@JonasAlfredsson`][2]'s work. If you like this version you should also leave a star on his repo.\n\n[1]: https://certbot.eff.org\n[2]: https://github.com/JonasAlfredsson/docker-nginx-certbot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakmord2%2Fdocker-nginx-certbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrakmord2%2Fdocker-nginx-certbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakmord2%2Fdocker-nginx-certbot/lists"}