Commit 6fed5901 authored by cossins's avatar cossins
Browse files

add tomcat config files when creating the container

parent f0d9dc46
......@@ -88,12 +88,10 @@ Then enters the folder and compile the project with maven:
mvn clean package -DskipTests -s WebAPIConfig/settings.xml -P webapi-postgresql
Then we moved it to the tomcat with the configuration files:
Then we moved it to the tomcat:
docker cp web.xml webapi_tomcat:/usr/local/tomcat/webapps.dist/manager/WEB-INF
docker cp tomcat-users.xml webapi_tomcat:/usr/local/tomcat/conf
docker cp target/WebAPI.war webapi_tomcat:/usr/local/tomcat/webapps
docker logs webapi_tomcat -f
docker logs webapi_tomcat -f # check no error connecting
Check installation by going to: http://localhost:8080/WebAPI/info
......@@ -26,6 +26,9 @@ services:
image: tomcat:8.5
restart: always
container_name: webapitomcat
- ./web.xml:/usr/local/tomcat/webapps.dist/manager/WEB-INF/web.xml
- ./tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml
image: nginx:stable-alpine
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment