{"id":19559348,"url":"https://github.com/machy8/docker-nginx-proxy-server","last_synced_at":"2026-05-09T16:10:10.650Z","repository":{"id":262147901,"uuid":"109723394","full_name":"Machy8/docker-nginx-proxy-server","owner":"Machy8","description":"🐳 Simple Nginx proxy server you can run in Docker","archived":false,"fork":false,"pushed_at":"2018-08-23T06:42:57.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T08:24:56.302Z","etag":null,"topics":["docker","nginx","proxy-server"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Machy8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","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":"2017-11-06T16:53:58.000Z","updated_at":"2018-08-23T06:42:59.000Z","dependencies_parsed_at":"2024-11-10T20:47:36.710Z","dependency_job_id":null,"html_url":"https://github.com/Machy8/docker-nginx-proxy-server","commit_stats":null,"previous_names":["machy8/docker-nginx-proxy-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Machy8/docker-nginx-proxy-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Machy8%2Fdocker-nginx-proxy-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Machy8%2Fdocker-nginx-proxy-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Machy8%2Fdocker-nginx-proxy-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Machy8%2Fdocker-nginx-proxy-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Machy8","download_url":"https://codeload.github.com/Machy8/docker-nginx-proxy-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Machy8%2Fdocker-nginx-proxy-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267145957,"owners_count":24042657,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","nginx","proxy-server"],"created_at":"2024-11-11T05:00:20.435Z","updated_at":"2025-10-23T20:05:02.948Z","avatar_url":"https://github.com/Machy8.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Docker Pulls](https://img.shields.io/docker/pulls/machy8/docker-nginx-proxy-server.svg)](https://hub.docker.com/r/machy8/docker-nginx-proxy-server/)\n[![Docker Build Status](https://img.shields.io/docker/build/machy8/docker-nginx-proxy-server.svg)]()\n\n# Docker nginx proxy server\n\nThis repo is a simple Nginx proxy server you can run in Docker.\n\nPull image\n````\ndocker pull machy8/docker-nginx-proxy-server\n````\n\nRequired network\n````\ndocker network create proxy-server\n````\n\n## Example \n- Open your console and run `docker network create proxy-server`\n\n- Create a docker-compose.yml file for the proxy-server\n````yaml\nversion: '3'\nservices:\n  server:\n    container_name: proxy-server\n    image: machy8/docker-nginx-proxy-server\n    volumes:\n        - ./sites.d/test-web:/etc/nginx/sites.d/test-web\n        - ./certificates:/etc/letsencrypt\n        - ./log:/var/log/nginx\n    networks:\n        - proxy-server\n    ports:\n        - \"80:80\"\n        - \"443:443\"\n\nnetworks:\n    proxy-server:\n        external:\n            name: proxy-server\n````\n\n- Create a directory /sites.d/test-web (example with certificates bellow)\n````\n- docker-compose.yml\n- sites.d\n    - test-web\n        - test-web.conf\n````\n\n- Create a configuration file (for example test.com.conf) in the hosts directory\n````nginx\nserver {\n    listen 80;\n    server_name localdev.test.com test.com;\n    \n    proxy_redirect   off;\n    proxy_set_header Host $host;\n    \n    location / {\n        proxy_pass  http://test-web/; # test-web is the name of the container where the request will be redirected\n    }\n}\n````\n\n- Connect containers you want to connect to proxy server to the proxy-server network\n````yaml\nversion: \"3\"\nservices:\n    web:\n        container_name: test-web\n        image: nginx:alpine\n        networks:\n            - proxy-server\n\nnetworks:\n    proxy-server:   # This is the name for network used in THIS configuration file\n        external:   # This says, that the network is external (not within this docker-compose.yml)\n            name: proxy-server  # This s the name of the external network\n````\n\n- (optional) Edit your hosts file\n````\n127.0.0.1 localhost\n127.0.0.1 localdev.test.com test.com\n````\n- Build and start the container with your test web\n- Build and start the container with proxy-server\n- Open browser and connect to http://localdev.test.com\n\n## Certbot (Lets Encrypt)\n- Proxy server already contains [certbot](https://certbot.eff.org/)\n- Nginx is configured to redirect all .well-known paths to the `/var/www/html` directory in order to allow Let's Encrypt to check and generate the certificates\n\n**Note**\nIn case you dont want to have certbot on localhost you need to remove the config. You can achieve that by creating a new Dockerfile in which you will remove it.\n\n```\nFROM machy8/docker-nginx-proxy-server\n\nRUN rm /etc/nginx/conf.d/certbot.conf\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachy8%2Fdocker-nginx-proxy-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachy8%2Fdocker-nginx-proxy-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachy8%2Fdocker-nginx-proxy-server/lists"}