$ vim .env
$ sudo docker-compose up -d --build
Note: Give 5-10 minutes to setup your environment
$ sudo docker ps
You also may verify from browsers via http://127.0.0.1:81/
$ sudo docker exec -i -t kanban_services_workspace_1 /bin/bash
$ php artisan migrate
--
In this example, we are going to view a list of all containers then access workspace to see php
$ sudo docker ps
$ sudo docker exec -i -t kanban_services_workspace_1 /bin/bash
$ sudo docker exec -i -t kanban_services_mysql_1 /bin/bash
$ php artisan
$ sudo docker kill
$(sudo docker ps -q) or $ sudo docker kill kanban_services_workspace_1
$ sudo docker rm -f kanban_services_workspace_1 or $ sudo docker rm $(sudo docker ps -a -q) #all
$ sudo docker rmi
$(sudo docker images -q) or $ sudo docker rmi -f $(sudo docker images -q)
$ sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/bin/docker-compose
$ systemctl start docker
$ systemctl status docker