-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
80 lines (80 loc) · 1.93 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.9'
networks:
postgres:
sparql:
volumes:
bundle:
git:
graphviz:
postgres:
sparql:
services:
spring:
restart: always
# To run from this source code instead of Docker hub,
# disable "image:"" and enable "build:" below
image: commonworkflowlanguage/cwlviewer:latest
#build: .
ports:
- "8080:8080"
networks:
- postgres
- sparql
volumes:
- type: volume
source: bundle
target: /data/bundle
- type: volume
source: git
target: /data/git
- type: volume
source: graphviz
target: /data/graphviz
environment:
- SPARQL_ENDPOINT=http://sparql:3030/cwlviewer/
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/cwlviewer
- SPRING_DATASOURCE_USERNAME=sa
- SPRING_DATASOURCE_PASSWORD=sa
- BUNDLESTORAGE=/data/bundle
- GITSTORAGE=/data/git
- GRAPHVIZSTORAGE=/data/graphviz
postgres:
restart: always
image: postgres:14-alpine
networks:
- postgres
command: postgres -c listen_addresses='*' -c log_statement=all
environment:
- POSTGRES_USER=sa
- POSTGRES_PASSWORD=sa
- POSTGRES_DB=cwlviewer
- PGDATA=/var/lib/postgresql/data/cwlviewer/
volumes:
- type: volume
source: postgres
target: /var/lib/postgresql/data
- type: bind
source: ./pg_hba.conf
target: /var/lib/postgresql/data/pg_hba.conf
sparql:
restart: always
## For debugging, expose the Fuseki port by enabling:
# ports:
# - "3030:3030"
## To find the admin password, try:
## docker compose exec sparql grep admin /fuseki/shiro.ini
image: stain/jena-fuseki:3.4.0
networks:
- sparql
volumes:
- type: volume
source: sparql
target: /fuseki
- type: bind
source: ./start-jena.sh
target: /start-jena.sh
ulimits:
nofile:
soft: 65536
hard: 65536
command: "/start-jena.sh"