Hi Please can someone help me, why were the deployment files removed after adding volume for the application directory?
This is my compose file:
version: '2.19' services: #1 application_prompts: build: context: . dockerfile: ./applications/Application_Prompts/Application_Prompts_Dockerfile volumes: - waveFiles:/usr/local/tomcat/webapps/Application_Prompts/waveFiles/ networks: - NetworkGroup ports: - 8070:8080 volumes: waveFiles:
FROM tomcat:9.0.48-jdk8-openjdk-slim ADD ./applications/Application_Prompts/war/Application_Prompts.war /usr/local/tomcat/webapps/ EXPOSE 8080 CMD ["catalina.sh","run"]
The issue is when the container has been running then I checked in the container directory it has only below one folder and the other has been removed because of volume mapping:
Please suggest to me the solution to avoid overriding of volume.