Skip to content

Commit 4e59fac

Browse files
committed
Add fuseki to docker compose file
1 parent bb716cc commit 4e59fac

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@ EXPOSE 8080
4848
# Expects mongodb on port 27017
4949
ENV SPRING_DATA_MONGODB_HOST=mongo
5050
ENV SPRING_DATA_MONGODB_PORT=27017
51+
52+
# Expects a sparql server endpoint
53+
ENV SPRING_DATA_SPARQL_ENDPOINT=http://sparql:3030/all/
54+
5155
CMD ["/usr/bin/java", "-jar", "/usr/lib/cwlviewer.jar"]

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ services:
1010
# - .:/code
1111
links:
1212
- mongo
13-
13+
- sparql
14+
environment:
15+
- SPRING_DATA_SPARQL_ENDPOINT="http://sparql:3030/all/"
16+
- SPRING_DATA_MONGODB_HOST=mongo
17+
- SPRING_DATA_MONGODB_PORT=27017
1418
mongo:
1519
image: mongo
20+
sparql:
21+
image: stain/jena-fuseki

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ spring.data.mongodb.port = 27017
5454
#=======================
5555
# SPARQL endpoint
5656
#=======================
57-
sparql.endpoint = http://view.commonwl.org:3030/all/
57+
sparql.endpoint = http://localhost:3030/all/

0 commit comments

Comments
 (0)