{"id":19882601,"url":"https://github.com/magimart/dockertuts","last_synced_at":"2026-04-07T16:33:04.079Z","repository":{"id":224190627,"uuid":"762213630","full_name":"Magimart/dockerTuts","owner":"Magimart","description":"Dockerizing React, Express app using MongoDb database. ","archived":false,"fork":false,"pushed_at":"2024-02-24T12:57:22.000Z","size":291,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T15:06:58.930Z","etag":null,"topics":["docker","docker-compose","docker-container","docker-network","expressjs","nodejs","postman","reactjs"],"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/Magimart.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":"2024-02-23T10:07:43.000Z","updated_at":"2024-02-24T12:59:48.000Z","dependencies_parsed_at":"2024-02-24T12:28:28.726Z","dependency_job_id":"31028314-4413-4979-aca4-32a49b912c8d","html_url":"https://github.com/Magimart/dockerTuts","commit_stats":null,"previous_names":["magimart/dockertuts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Magimart/dockerTuts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magimart%2FdockerTuts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magimart%2FdockerTuts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magimart%2FdockerTuts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magimart%2FdockerTuts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Magimart","download_url":"https://codeload.github.com/Magimart/dockerTuts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Magimart%2FdockerTuts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-container","docker-network","expressjs","nodejs","postman","reactjs"],"created_at":"2024-11-12T17:17:54.000Z","updated_at":"2026-04-07T16:33:04.071Z","avatar_url":"https://github.com/Magimart.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# To run mongo db container \ndocker run mongo   \u003c!-- this will run and floods the terminal meaning not logging out, Better to run in detatched mode like below --\u003e\n# docker run -d --name mongoDB mongo \ndocker container inspect mongoDb  \u003c!-- inspect the mongo container we started for great commands  --\u003e\n\nunder Networking setting you will find \"IPAddress\": \"172.17.0.2\",\nreplace the connection string in  the appjs file with ip address like below\neg   'mongodb://172.17.0.2:27017/mymongodb',\nthen build the image again\ndocker build -t mongodb-app .\ndocker run -d -p 4000:80 --name mongoDbv1 mongodb-app\n# Now we check docker run we see two containers running\ndocker ps\nshould see below\nPS Z:\\nodes\\myTutorials\\docker\\dockerAppMongoDB\u003e docker ps\nCONTAINER ID   IMAGE         COMMAND                  CREATED              STATUS              PORTS                    NAMES\n2575365b3107   mongodb-app   \"docker-entrypoint.s…\"   About a minute ago   Up About a minute   0.0.0.0:3000-\u003e4000/tcp   mongoDbv1\n6903f4a94373   mongo         \"docker-entrypoint.s…\"   25 minutes ago       Up 25 minutes       27017/tcp                mongoDb\nPS Z:\\nodes\\myTutorials\\docker\\dockerAppMongoDB\u003e \n# From the above you will see two containers running\none the mongo image container from docker hub\nsecond is the our app container running on our host machine\n\n# from the above we are running two containers mongo container and app container (mongodb-app)\ndocker build -t mongodb-app .\ndocker run -d -p 4000:80 --name mongoDbv1 mongodb-app\nrequest at postman\nget request http://localhost:4000/favorites\npost request http://localhost:4000/favorites\nmock data\n{\n   \"name\": \"A new Hope\",\n   \"type\": \"movie\",\n   \"url\": \"http://swapi.dev/api/films/1/\"\n}\n// From thses we will now try to multiple containers with each talking to each other via the \nNetwork. Keep learning :)\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagimart%2Fdockertuts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagimart%2Fdockertuts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagimart%2Fdockertuts/lists"}