Create a docker container with a WordPress development environment.
The images used in the docker-compose are:
- WordPress (latest)
- MariaDB (10.5.6) as database engine
- Adminer (latest) to manage the database easily
To persist data and files you must create the following folder structure:
- /mysql
- /src
- /plugins
- /themes
- /uploads
Run this command to start the container (it will create the container if not exists):
> docker-compose up
When running you can access to your wordpress here: http://localhost:8000
To manage the database you can access here: http://localhost:8080