{"id":18770128,"url":"https://github.com/help-me-mom/wordpress-docker-template","last_synced_at":"2026-04-08T19:32:29.685Z","repository":{"id":215616576,"uuid":"739380435","full_name":"help-me-mom/wordpress-docker-template","owner":"help-me-mom","description":"Preconfigured local setup for WordPress development with Docker","archived":false,"fork":false,"pushed_at":"2026-02-24T07:28:52.000Z","size":66,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-24T13:45:17.477Z","etag":null,"topics":["boilerplate","boilerplate-wordpress","docker","docker-compose","docker-compose-template","local-development","template-project","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/help-me-mom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"satanTime"}},"created_at":"2024-01-05T12:30:12.000Z","updated_at":"2026-02-24T07:28:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"aaf1bf03-d646-4cf7-a4de-f56d2dfcf1ae","html_url":"https://github.com/help-me-mom/wordpress-docker-template","commit_stats":null,"previous_names":["help-me-mom/wordpress-docker-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/help-me-mom/wordpress-docker-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/help-me-mom%2Fwordpress-docker-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/help-me-mom%2Fwordpress-docker-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/help-me-mom%2Fwordpress-docker-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/help-me-mom%2Fwordpress-docker-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/help-me-mom","download_url":"https://codeload.github.com/help-me-mom/wordpress-docker-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/help-me-mom%2Fwordpress-docker-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["boilerplate","boilerplate-wordpress","docker","docker-compose","docker-compose-template","local-development","template-project","wordpress"],"created_at":"2024-11-07T19:18:15.645Z","updated_at":"2026-04-08T19:32:29.678Z","avatar_url":"https://github.com/help-me-mom.png","language":"PHP","funding_links":["https://github.com/sponsors/satanTime"],"categories":[],"sub_categories":[],"readme":"# Preconfigured local setup for WordPress development with Docker\n\nThis template provides:\n\n- WordPress container (the version of wordpress can be changed)\n- MySQL container (the version of mysql can be changed)\n- Mail container to catch all emails WordPress sends\n- xdebug extension and bookmarks to enable / disable debugging\n- /cdn-bin/ scripts to update site url in the whole database\n\n## Installation for a new project\n\nChecklist:\n\n- [ ] clone / download this repo: https://github.com/help-me-mom/wordpress-docker-template\n- [ ] remove the line with `/website/src` from [`.gitignore`](./.gitignore)\n- [ ] if needed, update mysql version in [`compose.yml`](./compose.yml) in `services \u003e database \u003e image`  \n  by default the latest one is used\n- [ ] if needed, update wordpress version in [`website/docker.dev/Dockerfile`](./website/docker.dev/Dockerfile)\n  in `FROM`  \n  by default the latest one is used\n- [ ] you might want to use a different hostname than `localhost`, because `localhost` won't let you send emails  \n  for example, you can add `127.0.0.1 wp.internal` to `/etc/hosts` or `C:\\Windows\\System32\\drivers\\etc\\hosts` file\n- [ ] you can execute `docker compose up --build` to build and start containers  \n  you might need to wait until containers finish their bootstrap: creating databases, downloading WP, etc.\n- [ ] open http://wp.internal/ to finish WP installations\n- [ ] open http://localhost:81/ to verify you got an email about a new WordPress Website\n- [ ] that's it, now you can commit changes to git and start development\n\n## Installation for an existing project\n\nChecklist:\n\n- [ ] ensure you have source files of the existing project\n- [ ] ensure you have a database dump of the existing project\n- [ ] clone / download this repo: https://github.com/help-me-mom/wordpress-docker-template\n- [ ] remove the line with `/website/src` from [`/.gitignore`](./.gitignore)\n- [ ] update mysql version in [`/compose.yml`](./compose.yml) in `services \u003e databse \u003e image`  \n  you should use the same version as in the existing project\n- [ ] update wordpress version in [`/website/docker.dev/Dockerfile`](./website/docker.dev/Dockerfile) in `FROM`  \n  you should use the same version as in the existing project\n- [ ] you might want to use a different hostname than `localhost`, because `localhost` won't let you send emails  \n  for example, you can add `127.0.0.1 wp.internal` to `/etc/hosts` or `C:\\Windows\\System32\\drivers\\etc\\hosts` file\n- [ ] copy files from the existing project into [`/website/src`](./website/src)\n- [ ] update [`wp-config.php`](./website/src/wp-config.php) to respect local database connection  \n  if you have defined `DB_NAME`, `DB_USER`, `DB_HOST`, etc, you need wrap them with an if-else block:\n  ```php\n  if (getenv('WORDPRESS_DB_HOST')) {\n    define('DB_HOST', getenv('WORDPRESS_DB_HOST'));\n    define('DB_USER', getenv('WORDPRESS_DB_USER'));\n    define('DB_PASSWORD', getenv('WORDPRESS_DB_PASSWORD'));\n    define('DB_NAME', getenv('WORDPRESS_DB_NAME'));\n    define('DB_CHARSET', getenv('WORDPRESS_DB_CHARSET'));\n    define('WP_DEBUG', getenv('WORDPRESS_DEBUG'));\n  } else {\n    // here you need to place existing definitions of the contants above\n  }\n  ```\n- [ ] you can execute `docker compose up --build` to build and start containers  \n  you might need to wait until containers finish their bootstrap: creating databases, etc.\n- [ ] import the database dump: [instructions how to import a database](#import-database)\n- [ ] replace domain name in the database: http://wp.internal/cgi-bin/\n- [ ] open http://wp.internal/ to verify website works locally as expected\n- [ ] that's it, now you can commit changes to git and start development\n\n### Export database\n\nTo export the database from docker, you need to execute the next command:\n\n\u003e docker compose exec -T database mysqldump -uroot website --routines \u003e website.sql\n\n### Import database\n\nTo import a database into docker, you need to execute the next command,\nwhere `website.sql` should be the file you want to import:\n\n\u003e docker compose exec -T database mysql -uroot website \u003c website.sql\n\n### Check emails\n\nEmails can be checked at http://localhost:81/\n\n## Deployment to production\n\nTBD\n\n## Debugging\n\nTBD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelp-me-mom%2Fwordpress-docker-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelp-me-mom%2Fwordpress-docker-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelp-me-mom%2Fwordpress-docker-template/lists"}