Docker can be used as a flexible development environment for (web) applications. With docker-compose you can add up several services to a complete scenario. Here I would like to present a new setup that contains a lot of things to make a developers life more comfortable, notably:
- Apache with mod_php for PHP7
- MariaDB in a decently current version
- a complete ELK stack for log file aggregation and display (thanks to Will Durant for this)
- Mailhog as a dummy SMTP mailserver endpoint (thanks to ProudCommerce for their fantastic implementation of a Oxid Docker environment using Mailhog)
If you don’t need all these components, you always can disable whatever you’re not going to use. Your application will reside in the html subdirectory, the MySQL/MariaDB db files will be in the mysql directory so nothing is lost when you shut down the services.
If you need something else (PostgreSQL e.g.) please let me know and I will add it. Have fun!