{"id":15678365,"url":"https://github.com/zurfyx/docker-node","last_synced_at":"2026-04-10T06:55:49.094Z","repository":{"id":111159575,"uuid":"80348361","full_name":"zurfyx/docker-node","owner":"zurfyx","description":"Docker with Node and MongoDB","archived":false,"fork":false,"pushed_at":"2017-02-03T18:11:12.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T09:17:06.868Z","etag":null,"topics":["docker","docker-compose","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zurfyx.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-01-29T13:47:48.000Z","updated_at":"2022-11-19T00:39:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"692bdf26-23b5-44d5-940d-4b2dd00ef52d","html_url":"https://github.com/zurfyx/docker-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zurfyx","download_url":"https://codeload.github.com/zurfyx/docker-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285816,"owners_count":20752956,"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","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","docker-compose","mongodb","nodejs"],"created_at":"2024-10-03T16:20:33.423Z","updated_at":"2025-12-30T21:46:51.424Z","avatar_url":"https://github.com/zurfyx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker setup - Node.js + MongoDB\n\n# Prerequisites\n\n[Docker](https://docs.docker.com/engine/installation/)\n\n```\nsudo apt-get install apt-transport-https ca-certificates\ncurl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add \nsudo add-apt-repository \"deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main\"\nsudo apt-get update\nsudo apt-get -y install docker-engine\n```\n\n[Docker-compose](https://docs.docker.com/compose/install/)\n\n```\ncurl -L \"https://github.com/docker/compose/releases/download/1.10.0/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\nchmod +x /usr/local/bin/docker-compose\n```\n\n# Getting started\n\n## Using NPM\n\nPrerequisites:\n\n- [MongoDB](https://www.mongodb.com/)\n- [Node](https://nodejs.org/)\n\n```\nnpm install\nnpm start\n```\n\n## Using Docker\n\n```\ndocker-compose up\n```\n\n# Development\n\n## NPM\n\nThere's no specific development build for NPM.\n\n## Docker\n\nThere's a tiny modification in the mongodb docker behaviour (just for the sake of showing a \ndifferent config file)\n\n```\ndocker-compose -f docker-compose.dev.yml up\n```\n\nAdding / removing NPM Packages or Dockerfile modification will require a new build:\n\n```\ndocker-compose build\ndocker-compose up\n```\n\nTesting:\n\n```\ndocker-compose run web /bin/bash -c 'npm test'\n```\n\n# References\n\n- [Docker docs](https://docs.docker.com/)\n- [Docker releases](https://github.com/docker/docker/releases)\n- [Intro to Docker](http://jdlm.info/ds-docker-demo/)\n- [From dev to prod with nodejs](https://sloppy.io/from-dev-to-prod-with-nodejs-and-hackathon-starter-using-docker-compose-part-1/)\n- [including docker files to dockerize hackathon-starter](https://github.com/sahat/hackathon-starter/pull/496/files)\n- [Lessons from Building a Node App in Docker](http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html)\n- [Docker: Remote all images and containers](https://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurfyx%2Fdocker-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzurfyx%2Fdocker-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurfyx%2Fdocker-node/lists"}