-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
55 lines (50 loc) · 1.72 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# version number of docker-compose file
version: '3'
# list of the services which we would be using
services:
# the fuseki sparql endpoint service name
fuseki:
# would be using an image of the FUSEKI endpoint
image: stain/jena-fuseki
# would be using a volume to save the data
volumes:
# if want to store the data locally in ./fuseki_data
# - ./fuseki_data:/fuseki
# if want to store the data in a docker volume
- fuseki_data:/fuseki
# mapping of the ports, so that they can exposed
# [host port number]:[container port numer]
# comment the ports once the data has been uploaded, so that the server is not accessible publically
ports:
- 3030:3030
# any enviorment global variable that has to be provided
environment:
# the password that we want to keep for the server
- ADMIN_PASSWORD=pw123
# command to run on start of the fuseki server
# in order to create the in-memory dataset
entrypoint:
- /docker-entrypoint.sh
- /jena-fuseki/fuseki-server
- --mem
- /test
# the cqp4rdf service name
cqp4rdf:
# would be built from the dockerfile provided here
build:
context: .
dockerfile: Dockerfile
# mapping of the ports, so that they can exposed
# [host visible port number]:[container port numer]
ports:
- 8088:8088
# using this the fuseki sevice would start before the cqp4rdf service
depends_on:
- fuseki
# the running enviornment of the flask would be the development mode
environment:
- FLASK_ENV= development
# the volumes which would be used by fuseki to store the RDF files
# comment if storing the data locally in a directory
volumes:
fuseki_data: