This folder contains files that are useful when developing creativecommons-base
.
Make sure you have installed Docker and docker-compose
for your operating system prior to following these instructions.
The Docker compose file will start a few required or related services:
- a database server (MySQL or MariaDB)
- a WordPress server
- WordPress CLI - for managing the WordPress instance
- phpMyAdmin - for managing the database
There are several environment variables required to run the docker-compose
command. Copy the .env.example
to .env
and override the variables if needed. The defaults should work fine.
The .env
file should contain a variable called DATABASE
that is used to choose which database to use for development (mysql or mariadb).
If you change the value of the DATABASE
variable at any time during development, you will need to remove the old database volume in order and rebuild the images to prevent errors.
- remove the volume
docker-compose down --volumes
- rebuild the docker image
docker-compose up --build -d