-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
135 lines (128 loc) · 4.06 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
services:
app:
image: daschswiss/dsp-app:v11.22.1
ports:
- "4200:4200"
networks:
- knora-net
db:
# should be the same version as in Dependencies.scala,
# make sure to use the same version in ops-deploy repository when deploying new DSP releases!
image: daschswiss/apache-jena-fuseki:5.2.0
ports:
- "3030:3030"
volumes:
- db-home:/fuseki:delegated
- db-import:/staging:delegated
networks:
- knora-net
environment:
- TZ=Europe/Zurich
- ADMIN_PASSWORD=test
- JVM_ARGS=-Xmx3G
deploy:
resources:
limits:
memory: 8G
sipi:
image: daschswiss/knora-sipi:latest
ports:
- "1024:1024"
volumes:
- /tmp:/tmp
- ./sipi/config:/sipi/config:delegated
- ./sipi/images:/sipi/images:delegated
- ./sipi/server:/sipi/server:delegated
- ./sipi/scripts:/sipi/scripts:delegated
networks:
- knora-net
environment:
- TZ=Europe/Zurich
- SIPI_EXTERNAL_PROTOCOL=http
- SIPI_EXTERNAL_HOSTNAME=0.0.0.0
- SIPI_EXTERNAL_PORT=1024
# Use the following line if you start the api as a docker container from this docker-compose.yml
# - SIPI_WEBAPI_HOSTNAME=api
# Use the following line if you start the api from your IDE
- SIPI_WEBAPI_HOSTNAME=host.docker.internal
- SIPI_WEBAPI_PORT=3333
- KNORA_WEBAPI_KNORA_API_EXTERNAL_HOST=0.0.0.0
- KNORA_WEBAPI_KNORA_API_EXTERNAL_PORT=3333
- CLEAN_TMP_DIR_USER=clean_tmp_dir_user
- CLEAN_TMP_DIR_PW=clean_tmp_dir_pw
# entrypoint: [ "valgrind", "--leak-check=yes", "/sipi/sipi" ] ## uncomment to run SIPI under valgrind
# command: --config=/sipi/config/sipi.docker-test-config.lua ## command variant to start the sipi container with test routes enabled
command: --config=/sipi/config/sipi.docker-config.lua
deploy:
resources:
limits:
memory: 4G
ingest:
image: daschswiss/dsp-ingest:latest
ports:
- "3340:3340"
volumes:
- ./sipi/images:/opt/images:delegated
- ./sipi/tmp-dsp-ingest:/opt/temp:delegated
- ingest-db:/opt/db:delegated
networks:
- knora-net
environment:
- SERVICE_HOST=0.0.0.0
- SERVICE_PORT=3340
- SERVICE_LOG_FORMAT=text
- STORAGE_ASSET_DIR=/opt/images
- STORAGE_TEMP_DIR=/opt/temp
- JWT_AUDIENCE=http://localhost:3340
- JWT_ISSUER=0.0.0.0:3333
- JWT_SECRET=UP 4888, nice 4-8-4 steam engine
- SIPI_USE_LOCAL_DEV=false
- ALLOW_ERASE_PROJECTS=true
- DB_JDBC_URL=jdbc:sqlite:/opt/db/ingest.sqlite
- DSP_API_URL=http://host.docker.internal:3333
# - JWT_DISABLE_AUTH=true # Uncomment this line if you want to disable authentication for the ingest service
deploy:
resources:
limits:
memory: 2G
api:
image: daschswiss/knora-api:latest
ports:
- "3333:3333"
- "5555:5555"
- "3339:3339"
volumes:
- /tmp:/tmp
# Needed for local development when resetting the triplestore
- ./test_data:/opt/test_data
networks:
- knora-net
environment:
- TZ=Europe/Zurich
- KNORA_AKKA_LOGLEVEL=DEBUG
- KNORA_AKKA_STDOUT_LOGLEVEL=DEBUG
- KNORA_WEBAPI_TRIPLESTORE_HOST=db
- KNORA_WEBAPI_TRIPLESTORE_DBTYPE=fuseki
- KNORA_WEBAPI_SIPI_INTERNAL_HOST=sipi
- KNORA_WEBAPI_TRIPLESTORE_FUSEKI_USERNAME=admin
- KNORA_WEBAPI_TRIPLESTORE_FUSEKI_PASSWORD=test
- KNORA_WEBAPI_CACHE_SERVICE_ENABLED=true
- KNORA_WEBAPI_ALLOW_RELOAD_OVER_HTTP=true
- KNORA_WEBAPI_KNORA_API_EXTERNAL_HOST=0.0.0.0
- KNORA_WEBAPI_KNORA_API_EXTERNAL_PORT=3333
- KNORA_WEBAPI_DSP_INGEST_AUDIENCE=http://localhost:3340
- KNORA_WEBAPI_DSP_INGEST_BASE_URL=http://ingest:3340
- DSP_API_LOG_LEVEL=INFO
- ALLOW_ERASE_PROJECTS=true
# - DSP_API_LOG_APPENDER=JSON # if this variable is set, JSON logs are activated locally
deploy:
resources:
limits:
memory: 6G
networks:
knora-net:
name: knora-net
volumes:
db-home:
db-import:
ingest-db: