{"id":24370798,"url":"https://github.com/rama41222/docker-template","last_synced_at":"2026-02-16T16:35:30.606Z","repository":{"id":44313192,"uuid":"205447092","full_name":"rama41222/docker-template","owner":"rama41222","description":"Dockerizing a Nodejs app","archived":false,"fork":false,"pushed_at":"2022-12-11T03:51:12.000Z","size":165,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T17:08:34.140Z","etag":null,"topics":["docker","docker-compose","docker-compose-template","docker-container","docker-demo","docker-image","docker-machine","docker-registry","dockerfile","dockerfile-templating","javascript","nodejs","nodejs-server"],"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/rama41222.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}},"created_at":"2019-08-30T19:45:13.000Z","updated_at":"2021-07-28T14:19:46.000Z","dependencies_parsed_at":"2023-01-26T15:01:50.719Z","dependency_job_id":null,"html_url":"https://github.com/rama41222/docker-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/rama41222/docker-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rama41222%2Fdocker-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rama41222%2Fdocker-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rama41222%2Fdocker-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rama41222%2Fdocker-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rama41222","download_url":"https://codeload.github.com/rama41222/docker-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rama41222%2Fdocker-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29513275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":["docker","docker-compose","docker-compose-template","docker-container","docker-demo","docker-image","docker-machine","docker-registry","dockerfile","dockerfile-templating","javascript","nodejs","nodejs-server"],"created_at":"2025-01-19T04:48:18.152Z","updated_at":"2026-02-16T16:35:30.576Z","avatar_url":"https://github.com/rama41222.png","language":"JavaScript","readme":"Docker setup\n------------\n1. Create the .env\n`mv .env.sample .env`\n2. Add the environmental variables\n3. Run \n```\ndocker-compose up\ndocker-compose up -d #run in background\ndocker-compose down # remove\ndocker-compose stop # stop\ndocker-compose start # start stopped services\ndocker-compose run [service name] # run a single serivce in docker-compose manifest\ndocker-compose run web-cli # to ssh into the container\ndocker-compose build # Build the docker image\ndocker logs -f [container id] # to view logs\n```\n\n### Deployment\n\nChange the docker CMD to following\n`CMD [\"npm\", \"run\" ,\"start\"]`\n\n### Build the image\n\n**You have to manually add the user before running the image**\n\n```\ndocker build . -t [repo-name]/[image-name]:[version]\ndocker run -it -p [host-port]:[container-port] [image-name] [cmd]\n```\n[Medium Article](https://itnext.io/lets-dockerize-a-nodejs-express-api-22700b4105e4)  ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frama41222%2Fdocker-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frama41222%2Fdocker-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frama41222%2Fdocker-template/lists"}