Category: Software, Database, Kubernetes, Docker, shell

After some consideration, we decided to go with MongoDB as the database and Laravel as the framework of choice.

Initially Alpine Linux was the flavour of choice but at the time of writing this article Alpine Linux does not have MongoDB drivers for PHP in it’s latest repository.

Ideally, we want to build and export the artifacts to another cleaner container but this gets the job done so we can start building the actual software ASAP.

The line of code above mounts your local app directory as a volume inside your container so you can test your app without restarting it every time.

This effectively updates the composer.json in your project’s directory so you don’t have to worry about running the composer require outside of your container again.

Related Articles