{"id":18488843,"url":"https://github.com/samk13/node-express-docker-devops","last_synced_at":"2025-05-13T22:32:39.205Z","repository":{"id":103471897,"uuid":"382887111","full_name":"Samk13/node-express-docker-devops","owner":"Samk13","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-08T23:58:57.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T22:27:05.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Samk13.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-07-04T15:35:27.000Z","updated_at":"2021-07-08T23:58:59.000Z","dependencies_parsed_at":"2023-06-27T11:11:23.126Z","dependency_job_id":null,"html_url":"https://github.com/Samk13/node-express-docker-devops","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/Samk13%2Fnode-express-docker-devops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samk13%2Fnode-express-docker-devops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samk13%2Fnode-express-docker-devops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samk13%2Fnode-express-docker-devops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samk13","download_url":"https://codeload.github.com/Samk13/node-express-docker-devops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036813,"owners_count":22003655,"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":[],"created_at":"2024-11-06T12:52:57.103Z","updated_at":"2025-05-13T22:32:39.181Z","avatar_url":"https://github.com/Samk13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to start Docker container\n\n## for development:\n\n```zsh\n    docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d\n```\n\n## for production:\n\n```zsh\n    docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d\n```\n\n## take down the container:\n\n```zsh\n    docker-compose down -v\n```\n\n## info:\n\n```zsh\n docker run -d -p 4000:4000 -v ${pwd}:/app -v /app/node_modules --name node-app node-app-image\n```\n\ndocker explainations\n\n-d : detach docker run from the terminal\n-p : port -p 4000:4000 left side is the outside exposed container port and the right side is the inner container exposed port\n-v : is a volume container path the left side is the host path and the right side is the container path\n--name : is the name of the container\nnode-app-image : is the image name\n${pwd} : is the current directory\n\n## delete the container volume\n\n```zsh\ndocker rm -fv node-app\n```\n\n-fv : force the removal of the container and the volume\n\n## force rebuild the container with docker-compose\n\n```zsh\n    docker-compose up -d --build\n```\n\n--build : force the rebuild of the container\n-d : detach docker run from the terminal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamk13%2Fnode-express-docker-devops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamk13%2Fnode-express-docker-devops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamk13%2Fnode-express-docker-devops/lists"}