Harsh Vakharia

Showcase project with Docker


Run Showcase project using Docker.

This post presumes that docker & docker-compose are already installed on your system.

1. Clone repository

git clone https://github.com/harshjv/Showcase.git

2. Run containers

cd Showcase && docker-compose up -d

3. Install project dependencies using Composer

docker-compose run --rm phpnginx curl -O https://getcomposer.org/installer
docker-compose run --rm phpnginx php installer
docker-compose run --rm phpnginx php composer.phar install

4. Setup database

docker-compose run --rm mysql mysql -hmysql --password=root -e "create database showcase;"
docker-compose run --rm phpnginx php artisan migrate --seed

5. Get departmental tokens

docker-compose run --rm mysql mysql -hmysql --password=root -e "use showcase; select * from departments;"

6. Hooray

Visit http://localhost to view the project.

7. Or try all-in-one script

curl https://gist.githubusercontent.com/harshjv/875db02e8f8d3a09090f/raw/f535ca306c2279f8f06ca2b4a6a7a64f39805bef/install.sh | bash

Got any questions or comments? Drop me a message on Twitter @harshjv or comment below.

Fork me on GitHub