Microservices project made up of 1 frontend service and 2 backend services: products & shopping-cart
docker build -t ms-frontend:1.0 frontend
docker build -t ms-products:1.0 products
docker build -t ms-shopping-cart:1.0 shopping-cart
cd micro-service-name
npm install
npm run
docker run -d -p 3000:3000 \
-e PRODUCTS_SERVICE=host.docker.internal \
-e SHOPPING_CART_SERVICE=host.docker.internal \
ms-frontend:1.0
docker run -d -p 3001:3001 ms-products:1.0
docker run -d -p 3002:3002 ms-shopping-cart:1.0
export COMPOSE_PROJECT_NAME=micro-service-name (frontend)
export DC_IMAGE_NAME=micro-service-image-name (ms-frontend)
export DC_IMAGE_TAG=tag (1.0)
export DC_APP_PORT=port (3000)
docker-compose -d up