{"id":23146832,"url":"https://github.com/bowmans-dev/nginx_web_server_docker","last_synced_at":"2026-04-17T07:33:30.278Z","repository":{"id":175529621,"uuid":"584764129","full_name":"bowmans-dev/nginx_web_server_docker","owner":"bowmans-dev","description":"NGINX with Docker Setup","archived":false,"fork":false,"pushed_at":"2023-01-17T18:31:58.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"library","last_synced_at":"2025-04-04T13:28:44.682Z","etag":null,"topics":["docker","nginx","webserver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bowmans-dev.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":"2023-01-03T13:06:57.000Z","updated_at":"2023-01-06T23:39:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"44787b33-1d8b-41f2-aea8-b243af6a9392","html_url":"https://github.com/bowmans-dev/nginx_web_server_docker","commit_stats":null,"previous_names":["bowmans-dev/nginx_web_server_docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bowmans-dev/nginx_web_server_docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnginx_web_server_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnginx_web_server_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnginx_web_server_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnginx_web_server_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bowmans-dev","download_url":"https://codeload.github.com/bowmans-dev/nginx_web_server_docker/tar.gz/refs/heads/library","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fnginx_web_server_docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","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","webserver"],"created_at":"2024-12-17T16:38:51.484Z","updated_at":"2026-04-17T07:33:30.252Z","avatar_url":"https://github.com/bowmans-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction to NGINX\nUnderstand and Deploy Layer 4/Layer 7 Load Balancing, WebSockets, HTTPS, HTTP/2, TLS 1.3 with NGINX (With Docker)\n\n1. NGINX as a Web Server\n\n\u003chr\u003e\n\n_create a directory/folder for your nginx implementation:_\n\n`mkdir nginx-container`\n\n`cd nginx-container`\n\u003chr\u003e\n\n_the following example will spin up nginx on the default port commonly used for http (both the specified port and_ **--name ng1** are optional)_\n\n   `docker run --name ng1 -p 80:80 -d nginx`\n\n_view in CLI or browser:_\n\n - `curl http://localhost:80` \n - _or_ \n _search_ `localhost/ ` _in your browser_\n \n (you should see the nginx welcome page)\n\u003chr\u003e\n\n _stop the running demo container:_\n `docker stop ng1`\n\n _delete the demo container:_\n `docker rm ng1`\n \n\u003chr\u003e\n\n _create a directory/folder for your html file:_\n `mkdir html`\n `cd html`\n `vim index.html`   /editor of your choice \n \n _add your index page e.g:_\n######\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n   \u003ch1\u003e Hello Mars \u003ch1\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n\u003chr\u003e\n\n_setup new container:_\n   \n (**important:**\nmake sure to replace this next section: `/home/desk/Desktop/nginx-container/html:` with **your own directory path to the new html folder**)\n   \n```\n docker run --name ng1 -p 80:80 -v /home/desk/Desktop/nginx-container/html:/usr/share/nginx/html -d nginx\n```\n\n\u003chr\u003e\n\ntest the new html directory content/page is being served instead of the default nginx welcome page:\n\n `curl http://localhost:80` \n - _or_ \n _search_ `localhost/ ` _in your browser_\n\n#### (so far.. nginx is being implemented as a simple web server)\n\n\u003chr\u003e\n\nThe next part of this course: https://www.udemy.com/course/nginx-crash-course/ demonstrates how to override the default configuration of nginx setting it up as a reverse proxy which will point to 3 new instances of your continerised app, nginx will be configured to balance the load between them\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fnginx_web_server_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowmans-dev%2Fnginx_web_server_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fnginx_web_server_docker/lists"}