{"id":15028511,"url":"https://github.com/iglazunoff/docker-mongo-php","last_synced_at":"2026-03-16T22:33:06.137Z","repository":{"id":152467261,"uuid":"612909137","full_name":"iglazunoff/docker-mongo-php","owner":"iglazunoff","description":"Docker compose for projects with MongoDB, PHP and Redis","archived":false,"fork":false,"pushed_at":"2023-04-10T21:10:07.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-19T21:48:01.355Z","etag":null,"topics":["composer","docker","docker-compose","makefile","mongodb","php","php82","vitejs"],"latest_commit_sha":null,"homepage":"https://github.com/iglazunoff/docker-mongo-php","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iglazunoff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-12T10:54:00.000Z","updated_at":"2024-12-10T22:34:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"3395dd96-b8b8-428d-84f8-326624e45dd3","html_url":"https://github.com/iglazunoff/docker-mongo-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iglazunoff%2Fdocker-mongo-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iglazunoff%2Fdocker-mongo-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iglazunoff%2Fdocker-mongo-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iglazunoff%2Fdocker-mongo-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iglazunoff","download_url":"https://codeload.github.com/iglazunoff/docker-mongo-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243338277,"owners_count":20275462,"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":["composer","docker","docker-compose","makefile","mongodb","php","php82","vitejs"],"created_at":"2024-09-24T20:08:30.515Z","updated_at":"2025-12-29T22:04:59.569Z","avatar_url":"https://github.com/iglazunoff.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Mongo and PHP\nStarter kit for projects with MongoDB, PHP and Redis.\n\n## Navigation\n- [Introduction](#introduction)\n- [Quickstart](#quickstart)\n\n## Introduction\n### Containers\nThis starter kit includes the following containers and configurations for them:\n- **PHP** (8.2.4 fpm)\n- **Redis** (alpine)\n- **MongoDB** (6.0.5)\n- **Supervisor** (based on PHP container)\n- **Nginx** like web-server\n\n### Docker resources\nProvide the following resources for Docker to work correctly:\n- **RAM:** 2G and more\n- **CPU:** 2 cores and more\n- **Storage:** 6G and more\n- **Swap:** 512M and more\n\n### Environments\nAll default environment variables are located by paths:\n- docker/environments/.env.example - for build containers\n- docker/environments/.env.app.example - for your applications\n\n### Make helpers\nFor simple project management, we recommend using the commands from the Makefile.\nFor show all make commands write in your terminal:\n```shell\nmake help\n```\nOR\n```shell\nmake\n```\n\nFor open container terminal write in your terminal:\n```shell\n# php container\nmake php\n```\n```shell\n# supervisor container\nmake supervisor\n```\n```shell\n# MongoDB container\nmake mongo\n```\nStop all containers:\n```shell\nmake stop\n```\nStart all containers:\n```shell\nmake start\n```\nRestart all containers:\n```shell\nmake restart\n```\nRebuild all containers:\n```shell\nmake reload\n```\n\n## Quickstart\nTo initialize Docker containers and install composer and npm packages, write in your terminal:\n```shell\nmake env\n```\n#### Write actual values to environment variables\n```shell\nmake init\n```\n### OR\n```shell\ncp docker/environments/.env.example .env\ncp docker/environments/.env.app.example .env.app\n```\n#### Write actual values to environment variables\n```shell\ndocker network create \\\n    -o com.docker.network.bridge.name=$(PROJECT_NAME) \\\n    --driver=bridge \\\n    app-network\n\ndocker-compose build --no-cache\ndocker-compose up -d\ndocker exec -it \"$(PROJECT_NAME)-php\" composer install\ndocker exec -it \"$(PROJECT_NAME)-php\" npm install\n```\n\n## Nice!\n### Follow these steps\n- Initialization and first run will take 5 minutes or more, depending on the characteristics of your hardware and the resources allocated to Docker\n- Write your code or install framework and then more\n- It is recommended to use **root** or **src** as working directory\n- The entry point will be the file **public/index.php**\n- In the public directory, you can place all public files, such as robots.txt, sitemap.xml, etc. \n- Frontend assets will be in the directory **assets**\n\n#### Good luck!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figlazunoff%2Fdocker-mongo-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figlazunoff%2Fdocker-mongo-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figlazunoff%2Fdocker-mongo-php/lists"}