{"id":15527186,"url":"https://github.com/manhphuc/yivic-dev-suite","last_synced_at":"2025-07-08T10:41:03.587Z","repository":{"id":37392907,"uuid":"277822514","full_name":"manhphuc/yivic-dev-suite","owner":"manhphuc","description":"Collection of tools for Development of Yivic.com","archived":false,"fork":false,"pushed_at":"2022-05-15T11:03:48.000Z","size":4148,"stargazers_count":6,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T12:49:44.824Z","etag":null,"topics":["docker","nginx","php-composer","php-fpm","wordpress-docker","wordpress-docker-development"],"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/manhphuc.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}},"created_at":"2020-07-07T13:21:31.000Z","updated_at":"2022-06-21T06:48:12.000Z","dependencies_parsed_at":"2022-07-07T23:09:48.676Z","dependency_job_id":null,"html_url":"https://github.com/manhphuc/yivic-dev-suite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manhphuc/yivic-dev-suite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manhphuc%2Fyivic-dev-suite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manhphuc%2Fyivic-dev-suite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manhphuc%2Fyivic-dev-suite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manhphuc%2Fyivic-dev-suite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manhphuc","download_url":"https://codeload.github.com/manhphuc/yivic-dev-suite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manhphuc%2Fyivic-dev-suite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264252526,"owners_count":23579886,"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","nginx","php-composer","php-fpm","wordpress-docker","wordpress-docker-development"],"created_at":"2024-10-02T11:04:55.689Z","updated_at":"2025-07-08T10:41:03.562Z","avatar_url":"https://github.com/manhphuc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx, PHP-FPM, MySql for development - Yivic Team\n\n## Overview\nThis is a development suite for development with PHP. It can be easily deployed with 1 or 2 commands. It includes:\n- Nginx (`nginx_main` for serving as a proxy server)\n- PHP-FPM (`php72_fpm`, `php_latest_fpm` for executing PHP scripts via FastCGI of Nginx)\n- MySQL (`mysql57`, `mysql80` database, we have 5.7 for the stable and 8.0 is latest one)\n- PhpMyAdmin (`phpmyadmin` tool for managing database)\n\n\n\n___\n\n## Install prerequisites\n\nFor now, this project has been mainly created for Unix `(Linux/MacOS)`. Perhaps it could work on Windows.\n\nAll requisites should be available for your distribution. The most important are :\n\n* [Git](https://git-scm.com/downloads)\n* [Docker](https://docs.docker.com/engine/installation/)\n* [Docker Compose](https://docs.docker.com/compose/install/)\n\nCheck if `docker-compose` is already installed by entering the following command : \n\n```sh\nwhich docker-compose\n```\n\nCheck Docker Compose compatibility :\n\n* [Compose file version 3 reference](https://docs.docker.com/compose/compose-file/)\n\n\n## Installation\n- Clone or download the project\n- Change directory to the specified directory (default to `yivic-dev-suite`)\n```sh\ncd \u003cpath/to/project-directory\u003e\n# Init the .env file, then you can repair value needed to be updated, or you can copy `.env.example` -\u003e `.env`\n./scripts/init-env-file.sh \n\n# Init dev suite, you can add first option for the namespace of dev suite to overwrite the one in .env file\n./scripts/init-dev-suite.sh\n```\n`chmod +x /scripts/init-dev-suite.sh` if you can't execute it\nFor Mac user, it's better to create it inside your home, e.g `\u003cpath/to/project-directory\u003e` = `~/workspace/yivic-dev-suite/`\n- Repair params on `docker-compose.yml` of `etc/*.conf` or `etc/*.ini` files to match your local\n- Run Docker Compose\n```sh\ndocker-compose up -d\n```\n- Wait for several mins and you'll have:\n  - Nginx (work as a webserver)\n  - PHP-FPM (PHP execution server)\n  - MySql\n  - phpmyadmin (should connect to mysql via host host.docker.internal)\n  - We include MySQL in docker containers but because we believe database is important and you may lose you db once docker failed. Using a database server on local machine is out proposal: use `host.docker.internal` (for mac), `10.0.2.2` (for docker machine) for the hostname to connect to your main machine.\n\n## Using\n\n### PHP related commands\n#### PHP composer\n- Run the PHP composer container which your project folder on local machine bound to `/var/www/html` of composer container\n```bash \ndocker-compose run --rm -v /path/to/your/project/folder:/var/www/html php72_cli composer update\n```\n\n\n#### WP CLI\n```bash\ndocker-compose run --rm -v /path/to/your/project/folder:/var/www/html php72_cli wp plugin list\n```\n\n#### Running phpunit\n```bash\ndocker-compose run --rm -v /path/to/your/test/folder:/var/www/html php72_cli phpunit\n```\n\n#### Running codeception test\n```bash\ndocker-compose run --rm -v /path/to/your/test/folder:/var/www/html php72_cli codecept\n```\n\nSimilar thing if you want to use php_latest (use php_latest_cli instead)\n\n### SSDB (Redis like service but running on SSD)\n- `ssdb` is the instance\n- `phpssdbadmin` is the GUI manager of SSDB, http://\u003cdomain-to-instance\u003e:${PHPSSDBADMIN_WEB_EXPOSING_PORT}, user: `admin`, password: `password`\n\n___\n\n## Help us\n\nAny thought, feedback or issues, please put it here https://github.com/manhphuc/yivic-dev-suite/issues","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanhphuc%2Fyivic-dev-suite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanhphuc%2Fyivic-dev-suite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanhphuc%2Fyivic-dev-suite/lists"}