{"id":14975886,"url":"https://github.com/anuraggautam77/nginx-expressjs-docker","last_synced_at":"2026-03-02T09:33:59.447Z","repository":{"id":81437240,"uuid":"331570897","full_name":"anuraggautam77/nginx-expressjs-docker","owner":"anuraggautam77","description":"Express Js, Docker  and NGNIX server","archived":false,"fork":false,"pushed_at":"2021-01-21T16:53:52.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T12:39:14.297Z","etag":null,"topics":["docker","dockercompose","expressjs","nginx","nginx-docker"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/anuraggautam77.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":"2021-01-21T09:01:03.000Z","updated_at":"2024-04-28T10:27:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f554c7c6-7f51-4da4-99e9-0bdf7146f665","html_url":"https://github.com/anuraggautam77/nginx-expressjs-docker","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"aa37a42b2477c9493b4c372942e67fffcc2e9cb1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anuraggautam77/nginx-expressjs-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraggautam77%2Fnginx-expressjs-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraggautam77%2Fnginx-expressjs-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraggautam77%2Fnginx-expressjs-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraggautam77%2Fnginx-expressjs-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anuraggautam77","download_url":"https://codeload.github.com/anuraggautam77/nginx-expressjs-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraggautam77%2Fnginx-expressjs-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29997213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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","dockercompose","expressjs","nginx","nginx-docker"],"created_at":"2024-09-24T13:52:49.018Z","updated_at":"2026-03-02T09:33:59.430Z","avatar_url":"https://github.com/anuraggautam77.png","language":"HTML","funding_links":["https://www.buymeacoffee.com/fL0O9wW"],"categories":[],"sub_categories":[],"readme":"## Supported tags and respective `Dockerfile` links\n\n**Docker file to intstall Node Js Application**\n* [`node:12-alpine`, `latest` _(Dockerfile)_](https://github.com/anuraggautam77/nginx-express-Docker/blob/main/Dockerfile)\n\n**Docker file to intstall NGINX**\n* [`NGINX` _(Dockerfile)_](https://github.com/anuraggautam77/nginx-express-Docker/blob/main/nginx-conf/Dockerfile)\n\n\n## Description\n\nThis [**Docker**](https://www.docker.com/) image allows you to create [**Expressjs**](https://expressjs.com/) web applications that run with [**Nginx**](http://nginx.org/en/) in a single container.\n\n## How to use-\n\n\n* You should use it as a base image for other images, using this in your `Dockerfile` for NGNIX server:\n\n```Dockerfile\nFROM  nginx\nCOPY default.conf /etc/nginx/conf.d/default.conf\n# Your Dockerfile code...\n```\n* On same Diretory we ahve configuration for NGINX server\n\n ```\n server {\n        location / {\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_pass http://webapp:9090;\n    }\n}\n```` \n  \n* You shouldn't have to clone the GitHub repo. You should use it as a base image for other images, using this in your `Dockerfile` for expressjs application:\n\n```Dockerfile\nFROM  node:12-alpine\n# Your Dockerfile code...\n```\n\n* docker-compose file we have in root diretory with below code  which having two  services \n  1) webapp - refer to node/express application . Context as ```.``` means location of dockerfile\n  2) nginx  - refer to NGINX server . Dockerfile location is under ```nginx-config``` folder.\n ```\nversion: \"3.8\"\nservices:\n    webapp:\n        build:\n            context: .\n        ports:\n            - \"9090:8080\"\n    nginx:\n        restart: always\n        build:\n            context: ./nginx-conf\n        ports:\n            - \"9999:80\"\n```\n\n# Docker up using docker compose\n\n* Building an image\n\n```\n$ docker-compose build\n```\n\n* Running containers\n\n```\n$ docker-compose up\n```\n\n* Stopping  containers\n\n```\n$ docker-compose down\n```\n\n## Credits\n\nCreated by [@anuraggautam77](https://www.linkedin.com/in/anuraggautam77/)\n\n ## Cheer me\nCheer me up with a coffee! [![React Router](https://www.buymeacoffee.com/assets/img/bmc-f-logo.svg)](https://www.buymeacoffee.com/fL0O9wW)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuraggautam77%2Fnginx-expressjs-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanuraggautam77%2Fnginx-expressjs-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuraggautam77%2Fnginx-expressjs-docker/lists"}