{"id":19675254,"url":"https://github.com/denpalrius/docker-nestjs-starter","last_synced_at":"2026-03-07T02:32:35.494Z","repository":{"id":38809046,"uuid":"180571949","full_name":"denpalrius/docker-nestjs-starter","owner":"denpalrius","description":"NestJs app with Docker","archived":false,"fork":false,"pushed_at":"2023-03-08T00:57:30.000Z","size":1854,"stargazers_count":84,"open_issues_count":11,"forks_count":49,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-29T02:39:42.102Z","etag":null,"topics":["azure","azure-devops","docker","nestjs","nodejs","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/denpalrius.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":"2019-04-10T11:58:47.000Z","updated_at":"2025-04-25T08:28:48.000Z","dependencies_parsed_at":"2024-11-11T17:23:50.993Z","dependency_job_id":"c0d9611f-64eb-435c-a6a9-0400cb67dab7","html_url":"https://github.com/denpalrius/docker-nestjs-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denpalrius/docker-nestjs-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fdocker-nestjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fdocker-nestjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fdocker-nestjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fdocker-nestjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denpalrius","download_url":"https://codeload.github.com/denpalrius/docker-nestjs-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denpalrius%2Fdocker-nestjs-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30206069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"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":["azure","azure-devops","docker","nestjs","nodejs","typescript"],"created_at":"2024-11-11T17:22:23.988Z","updated_at":"2026-03-07T02:32:35.465Z","avatar_url":"https://github.com/denpalrius.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Runnig NestJs in a Docker Container\n\nThis is a [Nest Js](https://github.com/nestjs/nest) project configured for use with Docker\n\n## Installation\n\n```bash\n$ npm install\n```\nEnsure also that [Docker is installed](https://docs.docker.com/engine/install) on your work station\n\n\n## Running the app using node server (the normal way)\n\n```bash\n# development\n$ npm run start:dev\nor\nnest start\n\n# Debug/watch\n$ npm run start:debug\n\n# production\n$ npm run build:prod\n$ npm start\n```\n\n## Setting up the app for use with Docker\n1. Add Dockerfile\n2. Add docker-compose.yml\n3. Add unnecessary files to .gitignore\n4. Add .dockerignore and include the unnecessary files\n5. Add nodemon-docker-debug.json\n6. Add ```\"debug\": \"nodemon -L --config nodemon-docker-debug.json\"``` script to package.json\n7. Configure VS Code for [debugging the node js app with a container](https://code.visualstudio.com/docs/containers/debug-node)\n\n\n## Using Docker\n```sh\n# Build the image\n$ docker build -t docker-nest-js:v1.0 .\n\n# Run the image interactively\n$ docker run -it -p 3000:3000 docker-nest-js:v1.0\n```\n\n\n## Using Docker Compose\n```sh\n# Build the docker image\n$ docker-compose build\n\n# Start and login to the container\n$ docker-compose up -d\n$ docker-compose exec app sh\n```\n\n## Other useful Docker commands\n```sh\n# Get the container ID\n$ docker ps\n\n# View logs\n$ docker logs \u003ccontainer id\u003e\n\n# Enter the container (In alpine, use sh because bash is not installed by default)\n$ docker exec -it \u003ccontainer id\u003e /bin/sh\n```\n\n## Testing\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n## Resources\nTutorial: https://qiita.com/rema424/items/36475ea7379e0d9c5972  \nBest practices: https://github.com/docker/docker-bench-security\n\n\n## License\n[MIT licensed](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenpalrius%2Fdocker-nestjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenpalrius%2Fdocker-nestjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenpalrius%2Fdocker-nestjs-starter/lists"}