This project is a simple containerized Wordpress installation for development.
- Clone the repository
- Run
docker compose up - If it's a first run, fresh latest Wordpress will be downloaded and installed.
- Set up your WordPress site on http://localhost
- Wordpress files like
wp-config.phpare stored in thewordpress-datadirectory, so you can edit them directly - You can customize the
docker-compose.ymlfile to change the image versions, ports, etc.
- In
php.inichange PHP settings - In
Dockerfilechange included PHP modules (documentation) - In
docker-compose.ymlchangemariadbtomysql, addredisormemcached, etc. - Customize
.gitignoreto keep themes / plugins / etc.
- If you cannot edit Wordpress files (theme, plugins, updating, etc.), set
WWWGROUPto your user group and try again. - If Wordpress cannot access the database, check if
DB_HOSTinwp-config.phpmatches database service name in thedocker-compose.ymlfile.