Laravel based small business inventory tracking using Docker Environment
- Docker installed
- Clone repo
[email protected]:unit-6/101-backend.git
- Copy
docker-compose.yml.example
and rename todocker-compose.yml.example
- Check current exposed ports at docker-compose.yml, make sure all these ports can be used at localhost:-
- nginx -
:8080
- mysql -
:3306
- php -
:9000
- Navigate in terminal to the cloned directory and run
docker-compose up -d
- Run
docker ps
to check current container running:-
- Laravel -
http://localhost:8080/
- phpmyadmin -
http://localhost:8081/
docker-compose up -d --build site
docker-compose up -d
docker-compose down
docker images
docker images -a
docker ps
docker ps -a
docker system prune
docker system prune -a
Laravel project will be started at src folder. Three additional containers are included that handle Composer, NPM, and Artisan commands without having to have these platforms installed on your local computer. Use the following command examples from your project root:-
docker-compose run --rm composer install
docker-compose run --rm composer update
docker-compose run --rm artisan key:generate
docker-compose run --rm artisan migrate
docker-compose run --rm artisan migrate:fresh --seed
- Create new issue
- Assignees:
tag youself
- Labels:-
to do
- Task not yet do (compulsory)doing
- Task start (compulsory)enhancement
- New feature (optional)bug
- Need fixing (optional)documentation
- improve documents (optional)
- Create new branch from
Master
branch - Create pull request
- Link pull request with issue using keyword:
closes
<paste issue link here>
- Reviewer: @miesaf