{"id":23541400,"url":"https://github.com/blackbass64/docker-https","last_synced_at":"2025-04-23T19:16:44.609Z","repository":{"id":126055146,"uuid":"484782514","full_name":"blackbass64/docker-https","owner":"blackbass64","description":"🐳 5 steps to set up reverse proxy and HTTPS (SSL certificate) for Docker container","archived":false,"fork":false,"pushed_at":"2022-04-23T17:20:38.000Z","size":3,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T19:16:29.857Z","etag":null,"topics":["docker","https","ssl"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackbass64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-04-23T15:19:28.000Z","updated_at":"2024-07-19T10:36:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb6eb6a9-fdd9-47ae-91a8-66bb477e8424","html_url":"https://github.com/blackbass64/docker-https","commit_stats":null,"previous_names":["blackbass64/docker-https"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbass64%2Fdocker-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbass64%2Fdocker-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbass64%2Fdocker-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbass64%2Fdocker-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackbass64","download_url":"https://codeload.github.com/blackbass64/docker-https/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250496989,"owners_count":21440231,"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":["docker","https","ssl"],"created_at":"2024-12-26T05:15:49.136Z","updated_at":"2025-04-23T19:16:44.557Z","avatar_url":"https://github.com/blackbass64.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐳 5 steps to set up reverse proxy and HTTPS (SSL certificate) for Docker container\n\n1. Create Docker compose file for nginx-proxy stacks same as [nginx-proxy.yaml](https://github.com/atbee/docker-https/blob/main/nginx-proxy.yaml)\n\n2. Run nginx-proxy stacks\n\n```bash\n$ docker-compose -f nginx-proxy.yaml up -d\n```\n\n3. Add these environment variables to your container, for example [whoami.yaml](https://github.com/atbee/docker-https/blob/main/whoami.yaml)\n\n  - VIRTUAL_HOST - *Domain to access the container*\n  - VIRTUAL_PORT - *Container port*\n  - LETSENCRYPT_HOST - *Domain for issuing SSL certificate by Let's Encrypt*\n  - LETSENCRYPT_EMAIL - *Your email for Let's Encrypt notifications*\n\n4. Start/Restart the container\n\n```bash\n# example\n$ docker-compose -f whoami.yaml up -d\n```\n\n5. Test\n\nRun the following command to test the reverse proxy locally\n\n```bash\n$ curl -L -H \"Host: \u003cYOUR_DOMAIN\u003e\" localhost\n```\n\nThen go to your domain on browser for HTTPS and SSL certificate verification\n\n---\n\nThanks [nginx-proxy](https://github.com/nginx-proxy/nginx-proxy) for the awesome tool\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbass64%2Fdocker-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackbass64%2Fdocker-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbass64%2Fdocker-https/lists"}