M
M
Mark Ivanych2017-08-08 10:26:50
IntelliJ IDEA
Mark Ivanych, 2017-08-08 10:26:50

How to set up auto-deploy on file change with Docker and Jetty?

Hello,
please explain. how to update the application on the server when the file changes.

#docker-compose.yml
jetty:
     #build: docker/jetty
     image: jetty:alpine
     volumes:
       - ./docker/jetty/root.war:/var/lib/jetty/webapps/ROOT.war
       #- ./docker/jetty/jetty-deploy.xml:/usr/local/jetty/etc/jetty-deploy.xml
     ports:
       - "8080:8080"

Intellij Idea has the Docker integration
8d6c669c79634badb667e2febed3b45b.png
plugin . Finally, I launch it, everything works.
But if you run Build->Build Artifacts , nothing is updated in Jetty until everything is completely restarted.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mark Ivanych, 2017-08-08
@iormark

Generally just

volumes:
  - ./docker/jetty/target:/var/lib/jetty/webapps/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question