From 0098940cbdf967eb6f4dc4d8ac2319105e91de6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Sta=CC=86nescu?= <977712+cristianstanescu@users.noreply.github.com> Date: Wed, 1 Feb 2023 11:25:35 +0200 Subject: [PATCH] Fix and docs update --- README.md | 13 +++++++++++++ docker-compose.yml | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2446ae5..dd7b418 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,17 @@ docker run -d -p 7200:7200 ontotext/graphdb:10.0.0 Consult the docker hub documentation for more information. +### Using docker compose + +```bash +docker compose build +``` + +You can also specify the version of GraphDB you want to use with the `GRAPHDB_VERSION` [environment variable](https://docs.docker.com/compose/environment-variables/set-environment-variables/): +```bash +GRAPHDB_VERSION=10.1.3 docker compose build +``` + ### Preload a repository Go to the `preload` folder to run the bulk load data when GraphDB is stopped. @@ -77,6 +88,8 @@ docker-compose up -d > Feel free to add a `.env` file similar to the preload repository to define variables. +Open GraphDB Workbench in your browser at `http://localhost:7200/`. + # Issues diff --git a/docker-compose.yml b/docker-compose.yml index b1db8f2..c095e4b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,8 +7,9 @@ services: context: . dockerfile: Dockerfile args: - version: 10.0.0 + version: ${GRAPHDB_VERSION-10.0.0} restart: unless-stopped + platform: linux/amd64 environment: GDB_JAVA_OPTS: >- -Xmx2g -Xms2g