Skip to main content

Deploy Zazuko Blueprint using Docker

We are providing a container image for Zazuko Blueprint, that gets built automatically on every push to the main branch. We also tag some releases, so you can use a specific version of Blueprint.

You can pull the latest version of the container image using the following command:

docker pull ghcr.io/zazuko/blueprint:latest

The container exposes the Blueprint instance on port 80.

When deploying the container in production, make sure to use a specific version of the container image, instead of latest.

Configuration

You will need to provide some configuration to the container, using environment variables.

The following environment variables are available:

VariableDescriptionDefault
ENDPOINT_URLSPARQL endpoint URLrequired
SPARQL_CONSOLE_URLSPARQL console URLhttp://example.com/sparql/#query
GRAPH_EXPLORER_URLGraph Explorer URLhttp://example.com/graph-explorer/?resource
FULL_TEXT_SEARCH_DIALECTFull text search dialectfuseki
NEPTUNE_FTS_ENDPOINTOpenSearch endpoint for the Neptune dialecthttp://example.com/

Currently, the supported full text search dialects are stardog, fuseki and neptune.

If you are using neptune as the full text search dialect, you will need to provide the NEPTUNE_FTS_ENDPOINT environment variable.

In case you are using a Trifid instance, which is deployed at http://example.com, that is configured over a Fuseki endpoint, you can use the following configuration:

ENDPOINT_URL=http://example.com/query
SPARQL_CONSOLE_URL=http://example.com/sparql/#query
GRAPH_EXPLORER_URL=http://example.com/graph-explorer/?resource
FULL_TEXT_SEARCH_DIALECT=fuseki

Running the container

Using the configuration above, you can run the container with the following command:

docker run -d -p 8080:80 \
-e ENDPOINT_URL=http://example.com/query \
-e SPARQL_CONSOLE_URL=http://example.com/sparql/#query \
-e GRAPH_EXPLORER_URL=http://example.com/graph-explorer/?resource \
-e FULL_TEXT_SEARCH_DIALECT=fuseki \
ghcr.io/zazuko/blueprint:latest

And open your browser at http://localhost:8080.