Hey guys,
I have a docker-compose for Tomcat8 and I put my .war in there
web:
image: tomcat:8.5-jre8
build:
context:
./frontenddockerfile
ports:
- "80:8080"
- "443:443"
expose:
- '80'
- "443"
volumes:
- ./logs/:/usr/local/tomcat/logs/
- ./war/restv2.war:/usr/local/tomcat/webapps/restv2.war
- ./oo_conf/server.xml:/usr/local/tomcat/conf/server.xml
- ./oo_conf/context.xml:/usr/local/tomcat/conf/context.xml
- ./oo_lib/mysql-connector-java-5.1.29-bin.jar:/usr/local/tomcat/lib/mysql-connector-java-5.1.29-bin.jar
depends_on:
- db
After the .war is deployed and I have the folder structure, I basically want to copy the contents of a folder into the web folder (COPY src /usr/local/tomcat/webapps/restv2). and of course, for that to work the folder structure needs to be there…
Is it also possible to have another service that I just use for copy jobs after all my real services are up and running? and if so how would that look like, what would I put in “FROM” of the dockerfile?
Any ideas?
Thank you so much!