Just execute following command to make it work
docker-compose up
Perform following step to achieve the same.
- First inside server folder update the copy command in dockerfile from /server . to . . and then execute following command to build server image.
sudo docker build -t server .
- Run the server container by executing following command.
sudo docker run -d -p 8090:8090 -e Port=3030 --name server -v test-volume:/serverdata -t server
- Modify the copy command of dockerfile inside client folder from /client . to . . and excute following command to build the client image.
sudo docker build -t client .
- Run the client container by executing following command.
sudo docker run -d -p 9090:9090 -e ServerHost=server -e ServerPort=3030 --name client --link server -v test-volume:/clientdata -t client