The docker/ directory contains scripts and a Docker Compose setup for building and running RDF4J Server and Workbench locally. All commands below are run from that directory.
cd docker
The simplest way to build and start everything in one step:
./run.sh
This script will:
build.sh to build the Maven project and produce the SDK ZIPignore/rdf4j.zip (required by the Dockerfile)docker compose builddocker compose upOnce ready, the output will confirm:
Workbench is available at http://localhost:8080/rdf4j-workbench
By default tomcat is used. To use Jetty instead, set the APP_SERVER environment variable before running the scripts:
APP_SERVER=jetty ./run.sh
This controls which Dockerfile (Dockerfile-tomcat or Dockerfile-jetty) and which log volume are used.
If you only want to rebuild the Docker image, you can set SKIP_BUILD only if
ignore/rdf4j.zip already exists in the docker/ directory (for example, from a previous
build.sh or run.sh execution). Skipping the build does not create or refresh that ZIP:
SKIP_BUILD=1 ./run.sh
| Application | URL |
|---|---|
| RDF4J Server | http://localhost:8080/rdf4j-server |
| RDF4J Workbench | http://localhost:8080/rdf4j-workbench |
Follow logs in real time:
docker compose logs -f
Show all logs:
docker compose logs --tail="all"
Stop the container (keep volumes):
docker compose stop
To stop the container and remove the image and all volumes:
./shutdown.sh
Table of Contents