SE-418 软件产品设计的大作业
First, edit every project’s src/main/resources/application.yml and change profiles, hostname and defaultZone to the # one if you want to run them in docker, if not, don’t modify them.
Second, clean and install four service and dockerize them by excuting the following command in each project folder.
docker build -f Dockerfile -t <service-name> .
Then in the root folder, which contains docker-compose.yml, excuse the following command.
docker-compose up
After four docker images have loaded completely, you can access:
book-info-service:
rating-data-service:
By the way you may notice that our main service runs slow in some area, that’s because we used an API from themoviedb which is blocked by some network provider, just use your VPN and every thing will be fine.