Simple project 3 containers: db, restful api, ui endpoint gateway with angularjs to call restful api with zuul
cd springwebapp
mvn package -DskipTests
cd angularjswebapp
npm install; bower install; grunt build
cd springangularjsproject
cp -fr angularjswebapp/dist/* src/main/resources/static
mvn package -DskipTests
docker-compose -f docker-compose.yml up
docker image mysql:5 to access
docker exec -it microserviceproject_db_1 bash
mysql -uroot -p
use mysql;
select * from user;
show databases;
describe Contact;
uses tomcat:7 check logs
docker exec -it microserviceproject_restful_1 bash
ls /usr/local/tomcat/webapps
cd /usr/local/tomcat/logs
cat catalina*.logs | more
open browser: http://192.168.99.100:8090/springwebpp/contact/jsonlist
build angularjswebapp copy dist* to springangularjsproject\src\main\resources\static docker-compose up
zuul edge service: open browser: http://192.168.99.100:8080/contact
frontend: open browser: http://192.168.99.100:8080/