Skip to content

Commit bf1cc8d

Browse files
committed
Data Volumes for spring etc.
1 parent 44dc3f9 commit bf1cc8d

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

docker-compose.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,53 @@
1-
version: '2'
1+
version: '3.2'
2+
volumes:
3+
bundle:
4+
git:
5+
graphviz:
6+
mongo:
7+
sparql:
28
services:
39
spring:
410
# To run from this source code instead of Docker hub,
511
# disable "image:"" and enable "build:" below
6-
image: commonworkflowlanguage/cwlviewer
12+
image: commonworkflowlanguage/cwlviewer:v1.1.0
713
#build: .
814
ports:
915
- "8080:8080"
1016
links:
1117
- mongo
1218
- sparql
19+
volumes:
20+
- type: volume
21+
source: bundle
22+
target: /data/bundle
23+
- type: volume
24+
source: git
25+
target: /data/git
26+
- type: volume
27+
source: graphviz
28+
target: /data/graphviz
1329
environment:
1430
- SPARQL_ENDPOINT=http://sparql:3030/cwlviewer/
1531
- SPRING_DATA_MONGODB_HOST=mongo
1632
- SPRING_DATA_MONGODB_PORT=27017
33+
- BUNDLESTORAGE=/data/bundle
34+
- GITSTORAGE=/data/git
35+
- GRAPHVIZSTORAGE=/data/graphviz
1736
mongo:
18-
image: mongo
37+
image: mongo:3.4
38+
volumes:
39+
- type: volume
40+
source: mongo
41+
target: /data/db
1942
sparql:
2043
## For debugging, expose the Fuseki port by enabling:
2144
# ports:
2245
# - "3030:3030"
2346
## To find the admin password, try:
2447
## docker-compose exec sparql grep admin /fuseki/shiro.ini
25-
image: stain/jena-fuseki
26-
# FIXME: --loc=/fuseki/databases/cwlviewer fails as it needs empty dir
27-
command: "/jena-fuseki/fuseki-server --loc=/fuseki/databases /cwlviewer"
48+
image: stain/jena-fuseki:3.4.0
49+
volumes:
50+
- type: volume
51+
source: sparql
52+
target: /fuseki/databases
53+
command: "/jena-fuseki/fuseki-server --loc=/fuseki/databases/cwlviewer /cwlviewer"

0 commit comments

Comments
 (0)