If you’re goofing around with
docker-compose, then be sure to give Lando a try:
Lando is a free, open source, cross-platform, local development environment and DevOps tool built on Docker container technology. Designed to work with most major languages, frameworks and services, Lando provides an easy way for developers of all skill levels to specify simple or complex requirements for their projects, and then quickly get to work on them.
Comes with easy recipes (Drupal, Laravel, Mean, Symfony, WordPress, …) and shortcut-commands that immediately (e.g.
lando node --version runs immediately in your container)
At a recent PHPWVL meetup, Ike Devolder gave a talk on Lando that’s worth checking out.