{"id":21392344,"url":"https://github.com/hiyali/node-mongodb-dockerize","last_synced_at":"2026-04-29T23:05:09.046Z","repository":{"id":84520029,"uuid":"94750659","full_name":"hiyali/node-mongodb-dockerize","owner":"hiyali","description":"🐳  Dockerized repo of a Nodejs + MongoDB crawler (https://github.com/hiyali/node-crawler-on-mongodb) for daily job.","archived":false,"fork":false,"pushed_at":"2017-06-23T06:57:39.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T13:42:14.460Z","etag":null,"topics":["crontab","demo","docker","dockerization","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hiyali.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}},"created_at":"2017-06-19T07:49:43.000Z","updated_at":"2018-11-20T04:00:12.000Z","dependencies_parsed_at":"2023-03-02T04:30:38.058Z","dependency_job_id":null,"html_url":"https://github.com/hiyali/node-mongodb-dockerize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hiyali/node-mongodb-dockerize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyali%2Fnode-mongodb-dockerize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyali%2Fnode-mongodb-dockerize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyali%2Fnode-mongodb-dockerize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyali%2Fnode-mongodb-dockerize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiyali","download_url":"https://codeload.github.com/hiyali/node-mongodb-dockerize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyali%2Fnode-mongodb-dockerize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261397372,"owners_count":23152491,"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":["crontab","demo","docker","dockerization","mongodb","nodejs"],"created_at":"2024-11-22T13:40:14.457Z","updated_at":"2026-04-29T23:05:08.970Z","avatar_url":"https://github.com/hiyali.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodejs + Phantomjs Crawler on Mongodb dockerization\n\n## Download \u0026 Build\n```shell\nmkdir -p /hunt/db\ngit clone https://github.com/hiyali/node-mongodb-dockerize.git\ndocker build -q -t hunt_crawler:v1 crawler-docker/ # remove -q with outputs\n```\n\n## Run background\n```shell\ndocker run -d --restart always -v /hunt/db:/hunt/db:rw --add-host localhost:172.17.0.2 -p 5555:5555 -p 5556:80 --name crawler_container hunt_crawler:v1 /bin/bash -c \"/hunt/run.sh\"\n```\n\n## Run foreground\n```shell\ndocker run -i -t -v /hunt/db:/hunt/db:rw --add-host localhost:172.17.0.2 -p 5555:5555 -p 5556:80 --name crawler_runner_1 hunt_crawler:v1 /bin/bash\n./run.sh\n```\n\n## Start docker service \u0026 Start \u0026 Attach ...\n```shell\nsystemctl start docker\ndocker start crawler_runner_1\ndocker attach crawler_runner_1\n```\n\u003e To stop a container, use CTRL-c. This key sequence sends SIGKILL to the container. If --sig-proxy is true (the default),CTRL-c sends a SIGINT to the container. You can detach from a container and leave it running using the CTRL-p CTRL-q key sequence\n\n## docker basic command\n\n#### stop \u0026 remove all container\n```shell\ndocker stop $(docker ps -a -q)\ndocker rm $(docker ps -a -q)\n```\n\n#### show \u0026 remove images\n```shell\ndocker images\ndocker rmi \u003cimage id\u003e # remove a image\ndocker rmi $(docker images | grep \"^\u003cnone\u003e\" | awk -F ' ' '{print $3}') # remove all none named images\ndocker rmi $(docker images -q) # remove all images\n```\n\n#### cp file from container\n```shell\ndocker cp \u003ccontainerId\u003e:/file/path/within/container /host/path/target\n```\n\n#### command officially documentation\n[docker docs](https://docs.docker.com/engine/reference/commandline/build/)\n\n## design\n![Crawler design](https://raw.githubusercontent.com/hiyali/node-mongodb-dockerize/master/assets/crawler_design.png \"Crawler design\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiyali%2Fnode-mongodb-dockerize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiyali%2Fnode-mongodb-dockerize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiyali%2Fnode-mongodb-dockerize/lists"}