{"id":27768016,"url":"https://github.com/koddr/example-static-website-docker-nginx-certbot","last_synced_at":"2025-07-02T14:07:41.897Z","repository":{"id":41897020,"uuid":"236379489","full_name":"koddr/example-static-website-docker-nginx-certbot","owner":"koddr","description":"Example static website with Docker, Nginx and Certbot","archived":false,"fork":false,"pushed_at":"2025-06-24T07:44:20.000Z","size":664,"stargazers_count":36,"open_issues_count":5,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T08:34:53.238Z","etag":null,"topics":["article","certbot","docker-compose","droplet","nginx","tutorial-code"],"latest_commit_sha":null,"homepage":"https://dev.to/koddr/how-to-dockerize-your-static-website-with-nginx-automatic-renew-ssl-for-domain-by-certbot-and-deploy-it-to-digitalocean-4cjc","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koddr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"liberapay":"koddr"}},"created_at":"2020-01-26T21:34:58.000Z","updated_at":"2025-06-24T07:42:23.000Z","dependencies_parsed_at":"2025-04-29T19:58:55.356Z","dependency_job_id":"f9498e0c-7340-4a39-8169-103f601caab4","html_url":"https://github.com/koddr/example-static-website-docker-nginx-certbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koddr/example-static-website-docker-nginx-certbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Fexample-static-website-docker-nginx-certbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Fexample-static-website-docker-nginx-certbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Fexample-static-website-docker-nginx-certbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Fexample-static-website-docker-nginx-certbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koddr","download_url":"https://codeload.github.com/koddr/example-static-website-docker-nginx-certbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Fexample-static-website-docker-nginx-certbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263154337,"owners_count":23422008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["article","certbot","docker-compose","droplet","nginx","tutorial-code"],"created_at":"2025-04-29T19:58:50.130Z","updated_at":"2025-07-02T14:07:41.876Z","avatar_url":"https://github.com/koddr.png","language":"Shell","funding_links":["https://liberapay.com/koddr","https://paypal.me/koddr?locale.x=en_EN","https://liberapay.com/koddr/donate"],"categories":[],"sub_categories":[],"readme":"# Example static website with Docker, Nginx and Certbot\n\nThis is full project structure example of article [**How to dockerize your static website with Nginx, automatic renew SSL for domain by Certbot and deploy it to DigitalOcean?**](https://dev.to/koddr/how-to-dockerize-your-static-website-with-nginx-automatic-renew-ssl-for-domain-by-certbot-and-deploy-it-to-digitalocean-4cjc)\n\nPublished on [Dev.to](https://dev.to/koddr/how-to-dockerize-your-static-website-with-nginx-automatic-renew-ssl-for-domain-by-certbot-and-deploy-it-to-digitalocean-4cjc) @ 27 Jan 2020.\n\n## Requirements\n\n- Docker `19.x+`\n\n## Usage\n\n- Clone this repository and go to folder:\n\n```console\ngit clone https://github.com/koddr/example-static-website-docker-nginx-certbot.git\ncd example-static-website-docker-nginx-certbot\n```\n\n- Change `site.com` to your domain at files:\n\n```console\n./docker-compose.prod.yml\n./webserver/nginx/default.conf\n./webserver/nginx/site.com.conf\n```\n\n- Push configured project to your own git repository.\n- Go to [DigitalOcean](https://m.do.co/c/b41859fa9b6e) account, create and configure new droplet (see screenshots in [article](https://dev.to/koddr/how-to-dockerize-your-static-website-with-nginx-automatic-renew-ssl-for-domain-by-certbot-and-deploy-it-to-digitalocean-4cjc)).\n- Connect via SSH to your droplet and `git clone` your repo.\n- Check configuration of `Certbot`, start the process of obtaining SSL certificate in test mode:\n\n```console\nmake certbot-test DOMAINS=\"site.com www.site.com\" EMAIL=mail@site.com\n```\n\n- If you see `Congratulations!`, all okay; start the process of obtaining SSL in production mode:\n\n```console\nmake certbot-prod DOMAINS=\"site.com www.site.com\" EMAIL=mail@site.com\n```\n\n- And now, check Nginx config:\n\n```console\nmake deploy-test\n```\n\n- No errors? Go your static website to production:\n\n```console\nmake deploy-prod\n```\n\n- That's all!\n\n## Author\n\n- [Vic Shóstak](https://github.com/koddr) (aka Koddr).\n\n## Article assistance\n\nIf you want to say «thank you»:\n\n1. Twit about article [on your Twitter](https://twitter.com/intent/tweet?text=How%20to%20dockerize%20your%20static%20website%20with%20Nginx%2C%20automatic%20renew%20SSL%20for%20domain%20by%20Certbot%20and%20deploy%20it%20to%20DigitalOcean%3F%20https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Ftext%3Dhttps%3A%2F%2Fdev.to%2Fkoddr%2Fhow-to-dockerize-your-static-website-with-nginx-automatic-renew-ssl-for-domain-by-certbot-and-deploy-it-to-digitalocean-4cjc).\n2. Add a GitHub Star and make Fork to this repository.\n3. Donate some money to project author via PayPal: [@paypal.me/koddr](https://paypal.me/koddr?locale.x=en_EN) or [LiberaPay](https://liberapay.com/koddr/donate).\n4. Join DigitalOcean at our [referral link](https://m.do.co/c/b41859fa9b6e) (your profit is **$100** and we get $25).\n\nThanks for your support! 😘\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoddr%2Fexample-static-website-docker-nginx-certbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoddr%2Fexample-static-website-docker-nginx-certbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoddr%2Fexample-static-website-docker-nginx-certbot/lists"}