Taking Vaadin for a little spin. Created a Vaadin download from their start page https://start.vaadin.com/?preset=lts
- Selected Template Master-Detail
- Selected Type Java Only
- Java 11+
- Maven 3.5+
- Docker Desktop
> docker run --rm \
--name postgresql \
-e POSTGRESQL_USERNAME=vaadin \
-e POSTGRESQL_PASSWORD=vaadin \
-e POSTGRESQL_DATABASE=vaadin \
-p 5432:5432 \
bitnami/postgresql:latest
Note! It will take a while if it is your first run. A lot of files will be downloaded.
> mvn spring-boot:run
- Build Web image (Docker)
- Run Compose (or do it you own way)
Vaadin has a production profile we will use with maven.
We use Spring Boot Plugin to build Docker image
> mvn -Pproduction spring-boot:build-image
Command docker-compose will start up both database and webapplication. \
Run from root directory or use docker-compose -y <docker-compose.yml>
To start application run
> docker-compose up
To shutdown application run
> docker-compose down