{"id":19837498,"url":"https://github.com/srbrunoferreira/docker-wordpress","last_synced_at":"2025-02-28T18:47:37.838Z","repository":{"id":65580098,"uuid":"589788695","full_name":"srbrunoferreira/docker-wordpress","owner":"srbrunoferreira","description":"Docker environment for WordPress development with PHP, Apache, phpMyAdmin and MariaDB.","archived":false,"fork":false,"pushed_at":"2023-08-27T06:51:04.000Z","size":76,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T11:14:30.907Z","etag":null,"topics":["apache","docker","mariadb","mysql","php","php8","phpmyadmin","plugin","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/srbrunoferreira.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}},"created_at":"2023-01-16T23:51:36.000Z","updated_at":"2023-12-22T03:13:28.000Z","dependencies_parsed_at":"2023-08-27T08:05:48.961Z","dependency_job_id":null,"html_url":"https://github.com/srbrunoferreira/docker-wordpress","commit_stats":null,"previous_names":["srbrunoferreira/docker-wordpress"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbrunoferreira%2Fdocker-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbrunoferreira%2Fdocker-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbrunoferreira%2Fdocker-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbrunoferreira%2Fdocker-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srbrunoferreira","download_url":"https://codeload.github.com/srbrunoferreira/docker-wordpress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241202497,"owners_count":19926619,"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":["apache","docker","mariadb","mysql","php","php8","phpmyadmin","plugin","wordpress"],"created_at":"2024-11-12T12:14:34.219Z","updated_at":"2025-02-28T18:47:37.809Z","avatar_url":"https://github.com/srbrunoferreira.png","language":"PHP","readme":"# docker-php-fpm-apache-phpmyadmin-mariadb\nDocker environment with WordPress, PHP-FPM, Apache, phpMyAdmin and MariaDB\n\nUse it to develop your plugin or to have a LAMP stack to test some code.\n\nFeel free to use as you wish.\n\n## Setup\n1. Clone the repository on your local machine or WSL.\n\n2. (optional, but recommended) Generate self-signed SSL certificates with `mkcert`.\n   1. In your host machine, install [mkcert](https://github.com/FiloSottile/mkcert).\n      1. If you use WSL, you must [install mkcert with choco](https://github.com/FiloSottile/mkcert#windows) on Windows and **run every command of mkcert from the Windows terminal**. Otherwise, the browser won't recognize the certs.\n\n   2. Run: `mkcert -cert-file wordpress.local.pem -key-file wordpress.local.key.pem wordpress.local localhost 127.0.0.1 ::1`\n      1. Filename for the key must be wordpress.local.key.pem.\n      2. Filename for the cert must be wordpress.local.pem.\n      3. Otherwise, you'll need to change the 000-default.conf.\n\n3. Run `mkcert -install` in the same dir you executed the command above in order to enable the certs in your host machine browsers.\n\n4. Move the generated `.pem` to the path `/.docker/wordpress/apache/certs`\n\n5. Run `docker compose up --build -d`\n\n6. Lastly, you'll need to add `127.0.0.1 wordpress.local` to your operating system's hosts file. See [this tutorial](https://www.hostinger.com/tutorials/how-to-edit-hosts-file) to learn how to access them for Linux and Windows.\n   1. In Windows, add the two following lines. For Linux, just the first one:\n\n      ```\n      127.0.0.1 wordpress.local\n      ::1 wordpress.local\n      ```\n\n7. Open [wordpress.local](https://wordpress.local/) in your browser.\n\n8. Open [localhost:8080](http://localhost:8080) to access phpMyAdmin in your browser.\n\nCommand to run in wp-plugins for both host user and Docker be allowed to edit the files/folders:\n```\nsudo chgrp -R www-data wp-plugins/\nsudo find wp-plugins/ -type d -exec chmod 0775 {} \\;\nsudo find wp-plugins/ -type f -exec chmod 0775 {} \\;\n```\n\n## About the folders\n\n- `mariadb` - stores the mariadb data. So, you can run `docker compose down` and the database will still be safe here. You may delete `/mariadb/data/*` manually to reset the database.\n- `/wordpress` - stores settings for the WP service.\n- `/wp-logs` - stores the Apache logs from the WP service.\n- `/wp-plugins` - it's where you put your plugins. Also, any plugins installed from WordPress will be present here.\n- `/wp-themes` - it's where you put your themes. Themes intalled from WordPress will be present here too.\n\n## Reference\n* `./.docker/wordpress/php/php.ini`: https://github.com/php/php-src/blob/master/php.ini-development\n\n## Docker images used\n- https://hub.docker.com/_/wordpress\n- https://hub.docker.com/_/mariadb\n- https://hub.docker.com/_/phpmyadmin\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrbrunoferreira%2Fdocker-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrbrunoferreira%2Fdocker-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrbrunoferreira%2Fdocker-wordpress/lists"}