:whale: JHipster module, additional Docker support in your JHipster application
JHipster module, additional Docker support in your JHipster application
This is a JHipster module, that is meant to be used in a JHipster application. This module is used to generate a:
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
You have to install Docker and Docker Compose:
To use Automated build, you have to create an account at:
To install this module:
yarn global add generator-jhipster-docker
To update this module:
yarn global upgrade generator-jhipster-docker
To install this module:
npm install -g generator-jhipster-docker
To update this module:
npm update -g generator-jhipster-docker
To run the module on a JHipster generated application:
yo jhipster-docker
You can use this command to generate the Dockerfile for Automated build:
yo jhipster-docker default
To force the generator:
yo jhipster-docker default --force
When using the option Dockerfile for Automated build, Docker Hub will build a Docker image everytime you commit to your repository.
yo jhipster-docker
Dockerfile for Automated build at https://hub.docker.com/
YOUR_DOCKER_ID
by yours)The project djfarrelly/maildev is a simple way to test your project’s generated emails during development with an easy to use web interface.
You can launch:
docker-compose -f src/main/docker/smtp.yml up -d
You can access to it: http://localhost:1080
See the official documentation
Follow these steps:
src/main/docker/nginx/nginx.conf
, depending on the 1st stepdocker-compose -f src/main/docker/nginx.yml up -d
Note:
The use of network_mode: 'host'
in nginx.yml
may not work for Windows or MacOS.
Simply comment it and replace localhost
in src/main/docker/nginx/nginx.conf
file.
Your container (from inside) must access to the application.
You can access to it: http://localhost or http://localhost:8000
Apache-2.0 © Pascal Grimaud and the respective JHipster contributors