Development environment using docker compose
H5P Content Type development using docker-compose
Something that is relatively new is that Windows 10 Home edition can also run docker desktop using the WSL 2 backend. See https://docs.docker.com/docker-for-windows/install-windows-home/
code/ docker-devenv/ docker-compose.yml repos/ h5p-greetingcard/ greetingcard.css greetingcard.js library.json semantics.json
The file contents for the h5p-greetingcard folder can be gotten from the Hello world tutorial.
Creating network "docker-devenv_default" with the default driver Starting docker-devenv_drupal_1 ... done Starting docker-devenv_db_1 ... done
Remove the -d flag if you want to run in the foreground instead. Then you can stop the containers by hitting Ctrl + C.
Stopping docker-devenv_drupal_1 ... done Stopping docker-devenv_db_1 ... done Removing docker-devenv_drupal_1 ... done Removing docker-devenv_db_1 ... done Removing network docker-devenv_default
Note that the named volumes are left intact. If you want to remove those as well, you can do so with
docker-compose down --volumes.
docker-devenv_drupal_1 is up-to-date docker-devenv_db_1 is up-to-date
Note that we haven't mapped any ports for the MySQL container so we cannot connect to it from the host directly, but we also shouldn't currently need to.