{"id":15779584,"url":"https://github.com/jim60105/docker-reverseproxy","last_synced_at":"2025-10-15T21:31:04.468Z","repository":{"id":107553528,"uuid":"276601191","full_name":"jim60105/docker-ReverseProxy","owner":"jim60105","description":"Nginx reverse proxy, this set of ReverseProxy can establish routing when docker compose up, automatically apply and Renew SSL certificate (Docker Compose) ","archived":true,"fork":false,"pushed_at":"2021-08-27T04:08:58.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-04T18:21:06.612Z","etag":null,"topics":["docker","docker-compose","docker-compose-files","nginx-proxy","nginx-reverse-proxy","nginx-reverseproxy","ssl-certificates"],"latest_commit_sha":null,"homepage":"https://blog.maki0419.com/2020/11/linux-docker-setup-revese-proxy.html","language":"Shell","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/jim60105.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":"2020-07-02T09:12:41.000Z","updated_at":"2024-01-15T05:27:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"e87548ec-368a-4d2e-9f02-0210039804f8","html_url":"https://github.com/jim60105/docker-ReverseProxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim60105%2Fdocker-ReverseProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim60105%2Fdocker-ReverseProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim60105%2Fdocker-ReverseProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jim60105%2Fdocker-ReverseProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jim60105","download_url":"https://codeload.github.com/jim60105/docker-ReverseProxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236646107,"owners_count":19182599,"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","docker-compose","docker-compose-files","nginx-proxy","nginx-reverse-proxy","nginx-reverseproxy","ssl-certificates"],"created_at":"2024-10-04T18:20:33.924Z","updated_at":"2025-10-15T21:30:59.173Z","avatar_url":"https://github.com/jim60105.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx reverse proxy 反向代理\n\nTemplate改自: [nginx-proxy/acme-companion](https://github.com/nginx-proxy/acme-companion/blob/main/docs/Docker-Compose.md#two-containers-example)\n可在service up時自動申請SSL證書及建立路由\n\n## 部屬設定\n\n### .env\n\n* 建議填入預設email\n* 其餘選項需要再更動\n\n### Compose up\n\n`docker-compose up -d`\n\n## 後端container設定\n\n### 網路設定\n\n使用External_network: proxy-tier\n\n```docker run --network=proxy-tier -d IMAGE```\n\n### 添加以下環境變數\n\n| Key                 | Value                               | 說明                                                                                       |\n|---------------------|-------------------------------------|------------------------------------------------------------------------------------------|\n| `VIRTUAL_HOST`      | `your.domain.com`                   | 要往此service的網址                                                                        |\n| `LETSENCRYPT_HOST`  | `your.domain.com,second.domain.com` | SSL證書網域、別名；半型逗號分隔，放第一個的是憑證主體                                         |\n| `LETSENCRYPT_EMAIL` | `your@email.com`                    | 申請人email，到期日近會有通知；若不填入fallback使用DEFAULT_EMAIL；若也無DEFAULT_EMAIL時會報錯 |\n| `LETSENCRYPT_TEST`  | `true` / `false`                    | 申請測試證書。因正式申請有嘗試次數限制、申請數量限制，請在最後上線前再轉false                 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjim60105%2Fdocker-reverseproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjim60105%2Fdocker-reverseproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjim60105%2Fdocker-reverseproxy/lists"}