This is a example about how to work using microservices approach to build a web application.
We are using docker
and docker-compose
to handle our microservices.
- Install Docker
- Install Docker Compose
- Clone the repo by:
git clone [email protected]:mattgaviota/docker-microservices.git
- Go to project folder:
cd docker-microservices
- Create
.env
file:cp api-php/src/.env.example api-php/src/.env
- Setup docker images:
docker-compose up -d
- Install missing dependencies for php service and execute migrations and seeders:
docker exec -it --user $(id -u):$(id -g) [container id] bash
composer install
php artisan migrate -- seed
- Go to
http://localhost
to check the result