-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (42 loc) · 2.2 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
version: '2.1'
services:
timbuctoo:
image: huygensing/timbuctoo
command: sh -c "if ! [ -f /mapped-data/auth/users.json ]; then mkdir -p /mapped-data/auth; echo '[{\"@type\":\"user\",\"displayName\":\"givenNamesurname\",\"persistentId\":\"pid\",\"_id\":\"bc75a716-7965-49b5-bb93-68004ba0d900\"}]' > /mapped-data/auth/users.json; fi; if ! [ -f /mapped-data/auth/logins.json ]; then mkdir -p /mapped-data/auth; echo '[{\"@type\":\"login\",\"userPid\":\"pid\",\"password\":\"Cbjk8GMdx7HhQHgZkAR74FBo76eNWcb9q8R8WPMbup0=\",\"salt\":\"YTQzMjMzMjQtYWJmNC00YjYxLTk2ZDYtZDhkMDY1Nzc5MGJm\",\"userName\":\"user\",\"givenName\":\"givenName\",\"surName\":\"surname\",\"emailAddress\":\"email\",\"organization\":\"organization\"}]' > /mapped-data/auth/logins.json; fi; if ! [ -f /mapped-data/datasets/authorizations.json ]; then mkdir -p /mapped-data/datasets; echo '[{\"vreId\":\"indexer\",\"userId\":\"pid\",\"roles\":[\"USER\"]}]' > /mapped-data/datasets/authorizations.json; fi; /app/bin/timbuctoo server /app/example_config.yaml"
environment:
BASE_URI: http://localhost:8080
TIMBUCTOO_INDEXER_URL: http://indexer
TIMBUCTOO_ELASTICSEARCH_HOST: elasticsearch
TIMBUCTOO_ELASTICSEARCH_PORT: 9200
TIMBUCTOO_ELASTICSEARCH_USER: elastic
JAVA_OPTS: ${JAVA_OPTS}
timbuctoo_dataPath: ${timbuctoo_dataPath:-/mapped-data}
timbuctoo_authPath: ${timbuctoo_authPath:-/mapped-data/auth}
volumes:
- ./timbuctoo-data/:/mapped-data
ports:
- 8080:80
- 8081:81
timbuctoo-gui:
image: huygensing/timbuctoo-gui:v5.7
environment:
REACT_APP_BACKEND_URL: "http://localhost:8080"
ports:
- 3006:80
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.2
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "9300:9300"
indexer:
image: huygensing/timbuctoo-elasticsearch-indexer
environment:
indexer_timbuctoo_graphql_endpoint: http://timbuctoo/v5/graphql
indexer_timbuctoo_login_endpoint: http://timbuctoo/v2.1/authenticate
indexer_elasticsearch_host: http://elastic:changeme@elasticsearch:9200
indexer_port: 80
ports:
- "3000:80"