This guide outlines the steps to set up the network and services for the Alegra project, including the warehouse-service
, kitchen-service
, and restaurant
.
First, create a Docker network named alegra-net
that will allow the containers to communicate with each other.
docker network create alegra-net
Navigate to each service directory and start the services using Docker Compose.
cd warehouse-service
docker-compose up -d
docker-compose exec warehouse php artisan migrate
docker-compose exec warehouse php artisan db:seed
cd kitchen-service
docker-compose up -d
docker-compose exec kitchen php artisan migrate
docker-compose exec kitchen php artisan db:seed
cd restaurant
docker-compose up -d
docker-compose exec restaurant php artisan migrate
docker-compose exec restaurant php artisan db:seed
After completing the setup, you can verify the running containers with the following command:
docker ps