DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Getting started with Laravel and MongoDB in Docker for your next SAAS proje

4 years ago medium.com
Getting started with Laravel and MongoDB in Docker for your next SAAS proje

Summary: This is a summary of an article originally published by the source. Read the full original article here →

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.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com