I would like to setup my JHipster project on a remote server utilising docker-compose
as per here.
Am I right in thinking (for the simplest approach), these are the steps I might follow:
- Install docker on remote system.
- Install docker-compose on remote system.
- On laptop (with app src code) run
./mvnw package -Pprod docker:build
to produce a docker image of the application. - Copy the image produced by this to remote server like this.
- Install this image on remote system.
- On laptop copy relevant yml files from
src/main/docker
to a directory (e.g.dir/on/remote
) on the remote server. - Run
docker-compose -f dir/on/remote/app.yml up
on the remote server.
Thanks for your help.
Also any suggestions on how this process may be improved would be appreciated.