{"id":15027869,"url":"https://github.com/ionghitun/projects","last_synced_at":"2026-04-01T21:59:50.385Z","repository":{"id":63850133,"uuid":"338805733","full_name":"ionghitun/projects","owner":"ionghitun","description":"A simple Docker-based container for PHP and Node.js projects that ensures files created inside the container match your host's UID/GID.","archived":false,"fork":false,"pushed_at":"2026-03-21T17:05:05.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-22T07:11:48.548Z","etag":null,"topics":["docker","node","node-js","nodejs","php","php-docker","php-fpm","wsl","wsl2"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ionghitun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-14T12:57:16.000Z","updated_at":"2026-03-19T09:43:18.000Z","dependencies_parsed_at":"2024-02-11T18:25:58.265Z","dependency_job_id":"ac655c60-27d5-4240-8bb5-2c47f61416c6","html_url":"https://github.com/ionghitun/projects","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/ionghitun/projects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionghitun%2Fprojects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionghitun%2Fprojects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionghitun%2Fprojects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionghitun%2Fprojects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionghitun","download_url":"https://codeload.github.com/ionghitun/projects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionghitun%2Fprojects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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","node","node-js","nodejs","php","php-docker","php-fpm","wsl","wsl2"],"created_at":"2024-09-24T20:07:12.549Z","updated_at":"2026-04-01T21:59:50.338Z","avatar_url":"https://github.com/ionghitun.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker PHP \u0026 Node Development Environment\n\nA simple Docker-based container for PHP and Node.js projects that ensures files created inside the container match your host's UID/GID.\n\n## Prerequisites\n\n- Docker Engine \u0026 Docker Compose\n- Git\n- Linux or Windows WSL2\n\n## Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/ionghitun/projects.git\n   cd projects\n   ```\n2. **Set ownership (avoid root!)**\n   ```bash\n   sudo chown -R $USER:$USER .\n   ```\n3. **Copy and configure environment variables**\n   ```bash\n   cp scripts/.env.example scripts/.env\n   export USER_ID=$(id -u)\n   export GROUP_ID=$(id -g)\n   # Edit other variables in scripts/.env as needed\n   ```\n\n## Configuration\n\n- **PHP Configuration**: Edit `scripts/php/php.ini`\n- **Supervisor**: Edit `scripts/php/supervisord.conf`\n- **Global Run**:\n    1. Copy `scripts/run_all.sh.example` to `scripts/run_all.sh`\n    2. Modify it to include paths to your other project directories\n    3. Execute `./scripts/run_all.sh` to start multiple projects at once\n\n\u003e **Note:** Any files or folders created inside the container (e.g., via `composer create-project` or `npx create-react-app`) will have permissions matching your host UID/GID.\n\n## Available scripts\n\n```bash\n./scripts/start.sh    # Start the container\n./scripts/down.sh     # Stop the container\n./scripts/build.sh    # Build or rebuild the container\n./scripts/restart.sh  # Restart the container\n./scripts/console.sh  # Open a shell into the container\n```\n\n## Configure everything at once, including my other repos\n\n- run `sh scripts/configure.sh`\n\n\n## Troubleshooting\n\n- **Permission Issues**: Ensure `USER_ID` and `GROUP_ID` in `scripts/.env` match your host user IDs.\n- **Docker Issues**: For older versions you might want to remove `COMPOSE_BAKE` from `.env`.\n- **Docker Compose Issues**: Please update and ensure you can use `docker compose`, not old version `docker-compose`\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE) for details.\n\n## Contributing\n\nContributions are welcome! Please open issues or submit pull requests following the repository guidelines.\n\n_Happy Coding_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionghitun%2Fprojects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionghitun%2Fprojects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionghitun%2Fprojects/lists"}