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:buildto 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/dockerto a directory (e.g.dir/on/remote) on the remote server. - Run
docker-compose -f dir/on/remote/app.yml upon the remote server.
Thanks for your help.
Also any suggestions on how this process may be improved would be appreciated.