This guide covers running Requel 1.1.0+ (Java 17, Spring Boot 3 / Hibernate 6) with Docker using the published image on Docker Hub.
3307 for optional host DB access, 8181 for the web appdocker network create requel-net || true
The shared network keeps the Requel container and MySQL container on the same bridge.
docker run --name requelDB --net=requel-net \
-e MYSQL_ROOT_PASSWORD=pa33w0rd \
-e MYSQL_DATABASE=requel \
--restart unless-stopped \
-d mysql:8.4
-p3307:3306 if you need to reach MySQL from the host.requel matches the default JDBC URL shipped with the app.docker run --name requel --net=requel-net \
-p8181:8080 \
--restart unless-stopped \
-d rreganjr/requel:1.2.0 \
--spring.datasource.url=jdbc:mysql://requelDB:3306/requel?createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC \
--spring.datasource.username=root \
--spring.datasource.password=pa33w0rd
--spring.datasource.* flags if you customised credentials in the MySQL step.Once both containers are healthy, browse to http://localhost:8181/. If you are using Docker Toolbox, replace localhost with the VM IP (for example http://192.168.99.100:8181/).
Use a docker-compose.yml file to configure the database and server:
services:
db:
image: mysql:8.4
ports:
- "3307:3306"
networks:
- requel-net
environment:
- "MYSQL_ROOT_PASSWORD=pa33w0rd"
- "MYSQL_DATABASE=requel"
- "MYSQL_ROOT_HOST=%"
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -p\"$MYSQL_ROOT_PASSWORD\" --silent"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
restart: unless-stopped
web:
depends_on:
db:
condition: service_healthy
image: rreganjr/requel:1.2.0
ports:
- "8080:8080"
networks:
- requel-net
environment:
- "_JAVA_OPTIONS=-Xms2g -Xmx2g -XX:MaxMetaspaceSize=512m -XX:+UseG1GC"
- "SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/requel?createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC"
- "SPRING_DATASOURCE_USERNAME=root"
- "SPRING_DATASOURCE_PASSWORD=pa33w0rd"
restart: unless-stopped
networks:
requel-net:
driver: bridge
Then run the docker command in the folder where you have the yml file.
docker compose up -d
Stop with docker compose down (add --volumes if you want to drop the MySQL data directory).
admin / password admin.admin account, check ProjectUserRole and createProjects, then save.docker logs -f requel
Started Application line before attempting to login.docker rm -f requel requelDB
docker volume prune
Content type
Image
Digest
sha256:491baf3aa…
Size
771.8 MB
Last updated
10 months ago
docker pull rreganjr/requel