Public | Automated Build

Last pushed: 9 months ago
Short Description
A laravel with ms sql tools support. BETA version.
Full Description

This is a docker container with laravel and ms sql driver support. It also has mysql and phpmyadmin builtin support. This is base on laradock containers and this is for development purposes only, other developer could prioritize laradock.

To create a container:

docker run -d --name=test1 -v C:\Users\melchor.abcedE\Documents\Projects\Laravel\vertical-migrations\lms-vertical-app:/var/www/application -P arbninjas/arb-laravel-docker-development:latest

Laravel Setup:

Add the ms sql setup in database.php

'sqlsrv' => [
    'driver' => 'sqlsrv',
    'host' => env('DB_HOST', 'localhost'),
    'database' => env('DB_DATABASE', 'forge'),
    'username' => env('DB_USERNAME', 'forge'),
    'password' => env('DB_PASSWORD', ''),
    'charset' => 'utf8',
    'prefix' => '',
],

And in your .env file:

DB_CONNECTION=sqlsrv
DB_HOST=<IP OF THE HOST>
DB_PORT=1433
DB_DATABASE=<database_name>
DB_USERNAME=<username>
DB_PASSWORD=<your_password>

Project Setup:

Start the apache:
service apache2 start

If you wanted to use the mysql as database:
service mysql start

Update project via composer.
[from project root directory]
composer update

Docker Pull Command
Owner
arbninjas