{"id":19775506,"url":"https://github.com/jaredchu/wordpress-dev-dockercompose","last_synced_at":"2026-03-19T11:39:05.348Z","repository":{"id":259287067,"uuid":"863519751","full_name":"jaredchu/wordpress-dev-dockercompose","owner":"jaredchu","description":"The Docker Compose project for localhost WordPress development with Xdebug is included.","archived":false,"fork":false,"pushed_at":"2025-04-04T18:07:14.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T19:22:35.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/jaredchu.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}},"created_at":"2024-09-26T12:42:41.000Z","updated_at":"2025-04-04T18:07:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"72838578-ef9d-4add-8643-7a9bd11feadf","html_url":"https://github.com/jaredchu/wordpress-dev-dockercompose","commit_stats":null,"previous_names":["jaredchu/wordpress-dev-dockercompose"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaredchu/wordpress-dev-dockercompose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredchu%2Fwordpress-dev-dockercompose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredchu%2Fwordpress-dev-dockercompose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredchu%2Fwordpress-dev-dockercompose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredchu%2Fwordpress-dev-dockercompose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredchu","download_url":"https://codeload.github.com/jaredchu/wordpress-dev-dockercompose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredchu%2Fwordpress-dev-dockercompose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T17:46:22.538Z","status":"ssl_error","status_checked_at":"2026-03-03T17:46:22.036Z","response_time":61,"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":[],"created_at":"2024-11-12T05:16:32.254Z","updated_at":"2026-03-03T18:03:14.626Z","avatar_url":"https://github.com/jaredchu.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Dev Containers 🚀\n\nA development Docker environment for WordPress with Xdebug integration for debugging.\n\n## Features ✨\n\n- WordPress with PHP 8.2\n- MySQL 8.0\n- phpMyAdmin\n- Xdebug for debugging\n- SSL support\n- Persistent MySQL data\n- Volume mounting for live code updates\n- Content seeding with fake posts\n- WordPress installation script\n- Environment reset capability\n- Development directory structure\n\n## Prerequisites 📋\n\n- Docker\n- Docker Compose\n- Git\n\n## Quick Start 🚀\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/jaredchu/wordpress-dev-dockercompose.git wordpress-dev\ncd wordpress-dev\n```\n\n2. Set up environment:\n```bash\ncp .env.dev .env\ncp ./config/xdebug.ini.dev ./config/xdebug.ini\n```\n\n3. Start the containers:\n```bash\ndocker-compose up -d\n```\n\n4. Install WordPress:\n```bash\n./scripts/install.sh\n```\n\n5. Access your WordPress site at:\n- WordPress: https://localhost\n- phpMyAdmin: https://localhost:8080\n\n6. (Optional) Seed the database with fake content:\n```bash\n./scripts/seed.sh\n```\n\n## Available Services 🌐\n\n| Service    | URL                | Default Credentials |\n|------------|-------------------|---------------------|\n| WordPress  | https://localhost | Create during setup |\n| phpMyAdmin | https://localhost:8080 | root / (from .env) |\n\n## Development Workflow 💻\n\n1. **Code Changes**: Edit files in the `wordpress` directory\n2. **Database Access**: Use phpMyAdmin at port 8080\n3. **Debugging**: Configure your IDE to use Xdebug (port 9003)\n4. **Content Seeding**: Use `./scripts/seed.sh` to generate fake posts\n5. **Environment Reset**: Use `./scripts/reset.sh` to start fresh\n\n### Development Directory Structure 📁\n\n⚠️ **IMPORTANT**: Always store your development code in the `dev/` directory. Any code stored inside `wordpress/` directory will be removed when running `reset.sh`.\n\n```\n.\n├── dev/             # Development directory (SAFE - preserved on reset)\n│   ├── plugins/     # Development plugins\n│   └── themes/      # Development themes\n└── wordpress/       # WordPress installation (WILL BE RESET)\n```\n\nDirectory purposes:\n- `dev/`: Contains development files that are NOT part of the WordPress installation. This is the ONLY safe place for your code.\n- `wordpress/`: Contains a fresh WordPress installation that can be reset anytime. Do not store development files here.\n\n## Environment Variables 🔧\n\nKey variables in `.env`:\n- `MYSQL_ROOT_PASSWORD`: Database root password\n- `MYSQL_USER`: WordPress database user\n- `MYSQL_PASSWORD`: WordPress database password\n- `PHP_XDEBUG_BRANCH`: Xdebug version to install\n\n## Debugging Setup 🔍\n\n1. Configure Xdebug in your IDE:\n   - Port: 9003\n   - Host: localhost\n   - Path mappings: `/var/www/html` → `./wordpress`\n\n2. Enable debugging in browser:\n   - Install Xdebug browser extension\n   - Toggle debugging when needed\n\n## Troubleshooting 🛠️\n\n1. **Container won't start**:\n   ```bash\n   docker-compose down -v\n   docker-compose up -d\n   ```\n\n2. **Permission issues**:\n   ```bash\n   sudo chown -R $USER:$USER wordpress/\n   ```\n\n3. **Database connection issues**:\n   - Check MySQL service is running\n   - Verify credentials in .env\n   - Ensure ports are not blocked\n\n4. **Reset environment**:\n   ```bash\n   ./scripts/reset.sh\n   ```\n\n## Contributing 🤝\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n## License 📄\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredchu%2Fwordpress-dev-dockercompose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredchu%2Fwordpress-dev-dockercompose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredchu%2Fwordpress-dev-dockercompose/lists"}