Docker containers for Drupal
- Drupal Versions: 8.8, 8.9, 9
- MySQL Version: 5.7
- install docker-compose http://docs.docker.com/compose/install/
Start the container:
docker-compose --env-file envs/<env-file> up
Start the container in detach mode:
docker-compose --env-file envs/<env-file> up -d
Stop the container:
docker-compose --env-file envs/<env-file> stop
Destroy the container and start from scratch:
docker-compose --env-file envs/<env-file> down
docker volume rm drupal-<volume-name>
- ex.
docker volume rm drupal-latest_web_data drupal-latest_db_data
- ex.
You can follow the instruction in Drupal 8 Github Repo (Drupal 9 also works here since it is backwards compatible).