Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set platform in docker compose #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down