{"id":18563374,"url":"https://github.com/compulim/docker-iisnode","last_synced_at":"2026-01-24T12:36:48.203Z","repository":{"id":82478836,"uuid":"88379895","full_name":"compulim/docker-iisnode","owner":"compulim","description":"Dockerfile for iisnode","archived":false,"fork":false,"pushed_at":"2017-07-21T20:15:11.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T18:13:16.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compulim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-15T23:31:01.000Z","updated_at":"2022-01-25T15:50:30.000Z","dependencies_parsed_at":"2023-07-17T01:01:41.273Z","dependency_job_id":null,"html_url":"https://github.com/compulim/docker-iisnode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/compulim/docker-iisnode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fdocker-iisnode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fdocker-iisnode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fdocker-iisnode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fdocker-iisnode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compulim","download_url":"https://codeload.github.com/compulim/docker-iisnode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fdocker-iisnode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28727872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-06T22:12:27.601Z","updated_at":"2026-01-24T12:36:48.181Z","avatar_url":"https://github.com/compulim.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Internet Information Services (IIS) with Node.js and iisnode\n\n![https://compulim.visualstudio.com/_apis/public/build/definitions/77677cc8-077c-44b6-9cfc-25673974c1dc/3/badge](https://compulim.visualstudio.com/_apis/public/build/definitions/77677cc8-077c-44b6-9cfc-25673974c1dc/3/badge)\n\nThis is a Windows Container image. You can find the [Dockerfile](https://github.com/compulim/docker-iisnode/blob/master/Dockerfile) on GitHub.\n\nThis [article](https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/quick-start-windows-10) is a quick tutorial for running Docker on Windows 10.\n\n# Version\n\n| Name                       | Version      |\n| -------------------------- | ------------ |\n| microsoft/iis image        | 10.0.14393.* |\n| iisnode                    | 0.2.21 (x64) |\n| URL Rewrite                | 2.0 (x64)    |\n| Node.js for Windows        | 8.2.1 (x64)  |\n\n# How to use this image?\n\n## Pull this image from Docker Hub\n\n\u003e Before pulling, make sure your Docker is running in [Windows Container mode](https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers).\n\nRun `docker pull compulim/iisnode`, to pull the image to your local repository.\n\n## Prepare your Dockerfile\n\nAdd the following to your `Dockerfile`. It will copies all your files to `C:\\site` and host a new website named \"Production Site\" on port 8000.\n\n```dockerfile\nFROM compulim/compulim-info\n\nADD . /site\nRUN powershell -NoProfile -Command Import-module IISAdministration; New-IISSite -Name 'Production Site' -PhysicalPath C:\\site -BindingInformation '*:8000:'\n\nEXPOSE 8000\n```\n\n## Build your own Docker image\n\nBefore running your Docker image in a container, you need to use your Dockerfile to build your own Docker image.\n\nRun `docker build -t \u003cyour-image-name\u003e \u003cpath-to-your-dockerfile\u003e`.\n\n\u003e If you found Docker is taking long time and sending many unnecessary files to its daemon, you can add a `.dockerignore` or move your `Dockerfile` deeper inside your file hierarchy.\n\n## Run it on Docker\n\nRun `docker run -d -p 8000:8000 --name \u003cyour-container-name\u003e \u003cyour-image-name\u003e`.\n\nThis will run the Docker image and expose port 8000.\n\n\u003e To expose on host as port 80, replace it with `-p 80:8000`.\n\nTo connect to your web server, first, you need to find out the IP address associated to the container.\n\nRun `docker inspect -f \"{{ .NetworkSettings.Networks.nat.IPAddress }}\" \u003cyour-container-name\u003e` and it should display the IP address, for example, 172.25.221.24.\n\nThen browse to [http://172.25.221.24:8000/](http://172.25.221.24:8000/).\n\n# How to enable Failed Request Tracing?\n\nFailed Request Tracing is one of the very powerful diagnostic tool built into IIS.\n\nIn this Docker image, we have already installed \"Web-Http-Tracing\", which is essential for enabling FREB logs.\n\nThere are few more steps to enable Failed Request Tracing and view its logs:\n\n1. Enable Failed Request Tracing for the site\n2. Create a tracing rule\n3. Copy the log and view it locally\n\n## Enable Failed Request Tracing for the site\n\nRun `C:\\Windows\\system32\\inetsrv\\appcmd.exe configure trace \"Production Site\" /enablesite`.\n\nIt will enable Failed Request Tracing for site named \"Production Site\". By default, it will write to `C:\\inetpub\\logs\\FailedReqLogFiles\\W3SVC0000000000`, with up to 50 rolling files.\n\n\u003e You can find more information on [TechNet](https://technet.microsoft.com/en-us/library/cc725786(v=ws.10).aspx).\n\n## Create a tracing rule\n\nAdd the following to your `web.config`. The rule will enable logging for all possible combinations.\n\n```xml\n\u003ctracing\u003e\n  \u003ctraceFailedRequests\u003e\n    \u003cadd path=\"*\"\u003e\n      \u003ctraceAreas\u003e\n        \u003cadd provider=\"ASP\" verbosity=\"Verbose\" /\u003e\n        \u003cadd provider=\"ASPNET\" areas=\"AppServices,Infrastructure,Module,Page\" verbosity=\"Verbose\" /\u003e\n        \u003cadd provider=\"ISAPI Extension\" verbosity=\"Verbose\" /\u003e\n        \u003cadd provider=\"WWW Server\" areas=\"Authentication,Cache,CGI,Compression,FastCGI,Filter,iisnode,Module,RequestNotifications,Rewrite,Security,StaticFile,WebSocket\" verbosity=\"Verbose\" /\u003e\n      \u003c/traceAreas\u003e\n      \u003cfailureDefinitions statusCodes=\"200-599\" /\u003e\n    \u003c/add\u003e\n  \u003c/traceFailedRequests\u003e\n\u003c/tracing\u003e\n```\n\n\u003e To find out more providers and areas, you can look them up in `C:\\Windows\\system32\\inetsrv\\config\\applicationhost.config`, under `/system.webServer/tracing/traceProviderDefinitions`.\n\n## Copy the log and view it locally\n\n\u003e Before you can access the file system in the container, you need to stop the container first. Otherwise, it will show `The process cannot access the file because it is being used by another process. (0x20)` error.\n\nRun `docker cp \u003cyour-container-name\u003e:C:\\inetpub\\logs\\FailedReqLogFiles \u003clocal-destination-path\u003e` to copy the files to your local drive. The logs need to be translated by XSLT, thus, you need to open them in Internet Explorer.\n\n# Contributions\n\nLike us, please [star](https://github.com/compulim/docker-iisnode/stargazers) us.\n\nIf you found an issue or suggest a version bump, please [file an issue](https://github.com/compulim/docker-iisnode/issues) to us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fdocker-iisnode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompulim%2Fdocker-iisnode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fdocker-iisnode/lists"}