{"id":19218758,"url":"https://github.com/fadilxcoder/mongodb","last_synced_at":"2025-10-27T10:02:44.353Z","repository":{"id":86245574,"uuid":"300683125","full_name":"fadilxcoder/mongodb","owner":"fadilxcoder","description":"MongoDB with PHP using Docker containers \u0026 cloud ","archived":false,"fork":false,"pushed_at":"2022-09-04T19:05:28.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T19:23:45.268Z","etag":null,"topics":["docker","mongodb","php","poc"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/fadilxcoder.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":"2020-10-02T17:04:28.000Z","updated_at":"2022-09-04T10:11:55.000Z","dependencies_parsed_at":"2023-03-08T10:00:36.763Z","dependency_job_id":null,"html_url":"https://github.com/fadilxcoder/mongodb","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/fadilxcoder%2Fmongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fmongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fmongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadilxcoder%2Fmongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadilxcoder","download_url":"https://codeload.github.com/fadilxcoder/mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240292395,"owners_count":19778311,"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","mongodb","php","poc"],"created_at":"2024-11-09T14:27:59.715Z","updated_at":"2025-10-27T10:02:39.326Z","avatar_url":"https://github.com/fadilxcoder.png","language":"PHP","readme":"# Docker, MongoDB (GUI) \u0026 PHP on AWS C9\n\n- All configs regarding building the docker container is in `docker` folder\n- 2 files needed for mongodb : `Docker` \u0026 `mongod.conf` - **Important settings in mongod.conf (bindIp, dbPath, path)**\n- 2 folders needed for mongodb : `db` \u0026 `logs`\n \n## Third party\n\n- mongo-gui (Viewing MongoDB) - https://www.npmjs.com/package/mongo-gui\n\n## SetUp\n\n- Delete all images : `docker rmi -f $(docker images -a -q)` - *optional*\n- Delete containers : `docker rm fx_mongo_database fx_nginx fx_php_fpm` **names found in `docker-compose.yml`, use `docker ps -a` to check if name of containers exist** - *optional*\n- Change folders rights : `chmod 777 docker/mongodb/db/ docker/mongodb/logs/`\n- Build application : `docker-compose up --build`\n \n## App settings\n\n- In php file, connecting to mongoDB : `(new MongoDB\\Client('mongodb://myuser:docker@172.19.0.1:27017'))-\u003emydb;`, *where most settings is in docker-compose.yml file \u0026 IP is from **fx_nginx***\n\n \n## Go live\n\n- Install NGROK\n- use `docker ps -a` to see PORTS\n\n## Start application\n\n- Start docker by `docker-compose up`\n- Start NGROK \u0026 lanch App by `ngrok http 8881` *where 8881 is port*\n\n## Start Mongo GUI\n\n- After containers are UP, Start NGROK (Mongo GUI) by `ngrok http 4321` *where 4321 is port*\n \n## Resources\n\n- https://docs.mongodb.com/manual/crud/ (MongoDB CRUD Operations)\n\n## MongoDB Atlas / Windows\n\n- Windows DLL : https://pecl.php.net/package/mongodb\n- Download, rename file `.pem` to `.cer` and install : https://letsencrypt.org/certs/lets-encrypt-r3.pem\n- https://www.mongodb.com/docs/manual/reference/connection-string/ (Connection query parameters options)\n- https://cloud.mongodb.com/ - DB\n- **DB settings** : `(new MongoDB\\Client('mongodb+srv://xXxXxXxX:XxXxXxXxXxXxXXx@CLUSTER.xXxXxX.mongodb.net'))-\u003emy_database_name;`\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadilxcoder%2Fmongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadilxcoder%2Fmongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadilxcoder%2Fmongodb/lists"}