Make sure that docker and docker-compose are installed on your computer
Run frontend and backend servers with command:
Run app in containers:
docker-compose up -d
Run app in containers and rebuild images:
docker-compose up -d --build
frontend http://localhost:3000 backend http://localhost:3000/api/
docker-compose -f docker-compose.yml up -d --build
frontend your_domain (on port 80) backend your_domain/api/
We can build and push client and server images do dockerhub and use them with Kubernetes cluster.
docker build -t shol/multi-client ./client
docker build -t shol/multi-nginx ./nginx
docker build -t shol/multi-server ./server
docker push shol/multi-client
docker push shol/multi-nginx
docker push shol/multi-server