{"id":13732461,"url":"https://github.com/chriszarate/docker-wordpress","last_synced_at":"2025-04-22T15:24:15.986Z","repository":{"id":144724756,"uuid":"63515177","full_name":"chriszarate/docker-wordpress","owner":"chriszarate","description":"WordPress Docker development with WP-CLI, PHPUnit, Xdebug, and the WordPress unit testing suite","archived":false,"fork":false,"pushed_at":"2019-05-30T01:28:06.000Z","size":39,"stargazers_count":19,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T16:22:59.557Z","etag":null,"topics":["docker","docker-wordpress","phpunit","wordpress","xdebug"],"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/chriszarate.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-17T04:45:54.000Z","updated_at":"2021-07-22T04:41:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8ae5690-542c-44f0-9e1f-f5258adca5a1","html_url":"https://github.com/chriszarate/docker-wordpress","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fdocker-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fdocker-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fdocker-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fdocker-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chriszarate","download_url":"https://codeload.github.com/chriszarate/docker-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265514,"owners_count":21402121,"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","docker-wordpress","phpunit","wordpress","xdebug"],"created_at":"2024-08-03T02:01:57.374Z","updated_at":"2025-04-22T15:24:15.964Z","avatar_url":"https://github.com/chriszarate.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# WordPress development on Docker [DEPRECATED]\n\n**NOTE:** This image is no longer updated. It was created when the official\nWordPress image was still young and had a number of issues that made local\ndevelopment frustrating. These issues have since been addressed.\n\nIt can still be useful as an example of how to extend the official image and\nespecially as an example of how to install Xdebug.\n\nIn general, however, I recommend that you work instead from the official\nWordPress images, as shown in my [Docker Compose WordPress development][development]\nrepo.\n\n---\n\n## Environment variables\n\n- `WORDPRESS_ACTIVATE_PLUGINS`: A space-separated list of plugin paths relative\n  to `/var/www/html/wp-content/plugins/` that should be activated when the\n  container starts. If a plugin cannot be found, an install will be attempted\n  via `wp plugin install`.\n\n- `WORDPRESS_ACTIVATE_THEME` A theme path relative to `/var/www/html/wp-content/themes/`\n  that should be activated when the container starts. If the theme cannot be\n  found, an install will be attempted via `wp theme install`.\n\n- `WORDPRESS_CONFIG_EXTRA`: Additional PHP to append to `wp-config.php`.\n\n- `WORDPRESS_DB_HOST`: Default \"mysql\".\n\n- `WORDPRESS_DB_NAME`: Default \"wordpress\".\n\n- `WORDPRESS_DB_USER`: Default \"root\".\n\n- `WORDPRESS_DB_PASSWORD`: Default \"\".\n\n- `WORDPRESS_INSTALL_TYPE`: Default \"single\" (use \"multisite\" for Multisite install).\n\n- `WORDPRESS_PERMALINK_STRUCTURE`: Default \"/%year%/%monthnum%/%postname%/\"\n\n- `WORDPRESS_SITE_USER`: Default \"wordpress\"\n\n- `WORDPRESS_SITE_PASSWORD`: Default \"wordpress\"\n\n- `WORDPRESS_SITE_EMAIL`: Default \"admin@example.com\"\n\n- `WORDPRESS_SITE_TITLE`: Default \"Project\".\n\n- `WORDPRESS_SITE_URL`: Default \"http://project.dev\".\n\n\n## WP-CLI\n\nAssuming you are running in the context of Docker Compose:\n\n```sh\ndocker-compose exec --user www-data wordpress wp [command]\n```\n\n\n## Running tests (PHPUnit)\n\nPrevious versions of this image provided PHPUnit inside the container. However,\nbundling a single version of PHPUnit was not very flexible. Additionally, users\ndid not have the opportunity to install their own test dependencies. I now\nprovide a(n optional) separate PHPUnit WordPress container that provides much\ngreater flexibility and isolation. Please see the README of my\n[Docker Compose WordPress development][development] repo for instructions on how\nto set this up.\n\n\n## Xdebug\n\nXdebug is installed but needs the IP of your local machine to connect to your\nlocal debugging client. Edit `.env` and populate the `DOCKER_LOCAL_IP`\nenvironment variable with your machine's (local network) IP address. The default\n`idekey` is `xdebug`.\n\n```\nXDEBUG_CONFIG: \"remote_host=x.x.x.x idekey=xdebug\"\n```\n\nYou can enable profiling by appending additional instructions, e.g.:\n\n```\nXDEBUG_CONFIG: \"remote_host=x.x.x.x idekey=xdebug profiler_enable=1 profiler_output_name=%R.%t.out\"\n```\n\nThis will output cachegrind files (named after the request URI and timestamp) to\n`/tmp` inside the WordPress container.\n\n\n## Seed `wp-content`\n\nYou can seed `wp-content` with files (e.g., an uploads folder) by mounting a\nvolume at `/tmp/wordpress/init-wp-content`. Everything in that folder will be\ncopied to your installation's `wp-content` folder.\n\n\n## Provide trusted root certificates\n\nMount a folder of trusted root certificates to `/tmp/certs`. Any files in that\nfolder with a `.crt` extension will be added to the trusted certificate store.\n\n\n[development]: https://github.com/chriszarate/docker-compose-wordpress\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriszarate%2Fdocker-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchriszarate%2Fdocker-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriszarate%2Fdocker-wordpress/lists"}