https://github.com/waynehamadi/project.git
Overview ========
We will use Docker to setup containers to run our Laravel application. This should be a simple implementation to get developers up and running ASAP. Additionaly these containers can be used in any staging and production environments.
Setup =======
Checkout code from git repository.
Install docker and docker-compose.
To build the Application and it's containers, in your terminal go to the root directory and run:
# docker-compose up
# docker-compose exec app composer install
At this stage you will have a working application at http://127.0.0.1 and can use your favorite IDE to develop in your local environment's git cloned directory.
Laravel DB Setup ================
We will run the Laravel migration command to setup database tables. This executes the command within the application container.
# docker-compose exec app php artisan migrate
Cleanup =======
The best way to do that is with
# docker system prune -a
Find the volume with the following command.
# docker volume ls
Delete the volume with:
# docker volume rm VOLUMENAME