This project uses Laravel Tenancy for Laravel under the hood. The following are process required to run the application.
git clone https://github.com/devsahm/multitenancy-docker
Make sure you have started your running docker on your local machine and run this command
docker-compose up -d --build
docker exec -it Propel php artisan migrate
docker exec -it Propel php artisan db:seed
The above command build and serve the application while creating propel.localhost:8000
subdomain and sahm.localhost:8000
tenant application.
I abstracted the all docker commands into a Makefile for easy usage. This command build and serve the application, runs migration and seed the data for multitenant application
make setup