![]() ![]() I prefer to use NaviCat for most of my development, but you could also run phpMyAdmin with MariaDB in your Docker setup if you prefer. You can connect to your database in a number of ways. The best way I have found to describe the concept is to think of the workspace as an alias or magic symlink that ports your working directory into a server’s var/Step 6 – Connect to MariaDB and Create Your Database The concept of a workspace is a bit confusing for people new to Docker. Using Terminal, navigate into your project’s parent directory and clone the repository using Git. Step 1 – Clone Laradock into Projects Parent Directory If you have not done so, please install and configure them prior to continuing on with this guide. This guide assumes that you have Git, Composer, Docker and a Laravel project setup on your development machine. Setting up Multiple Projects with Laradock To accommodate this I decided to use Laradock for multiple projects. I like the Docker approach to development, so I am going to be using it for a few projects that we are currently developing/maintaining. There are few ways to work with Laradock based on whether it will be used for single project or multiple project developing. Getting Laradock up and running is pretty straight forward thanks to the documentation. Although originally dedicated to Laravel development, the community support allowed it to also support other PHP projects such as WordPress and Drupal. It has good documentation and a huge community supporting it. Laradock is a full PHP development environment for Docker that has been tailored to Laravel. In our case we need to run Nginx, PHP and MariaDB for our new development that is where Laradock comes into play. However, we ran into a situation where we are developing an application with requirements that fall outside of the trusty old LAMP stack. ![]() I have used MAMP (Macintosh, Apache, MySQL, PHP) for local development for many years, and I fully admit to liking it for its simplicity for general LAMP development (Linux, Apache, MySQL, PHP). ![]()
0 Comments
Leave a Reply. |