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.php
are stored in thewordpress-data
directory, so you can edit them directly - You can customize the
docker-compose.yml
file to change the image versions, ports, etc.
- In
php.ini
change PHP settings - In
Dockerfile
change included PHP modules (documentation) - In
docker-compose.yml
changemariadb
tomysql
, addredis
ormemcached
, etc. - Customize
.gitignore
to keep themes / plugins / etc.
- If you cannot edit Wordpress files (theme, plugins, updating, etc.), set
WWWGROUP
to your user group and try again. - If Wordpress cannot access the database, check if
DB_HOST
inwp-config.php
matches database service name in thedocker-compose.yml
file.