-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 2.12 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
version: '3'
services:
elasticsearch:
container_name: es-search-api
image: docker.elastic.co/elasticsearch/elasticsearch:6.1.1
volumes:
- ./runtime/es:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9300:9300"
- "9200:9200"
api:
container_name: node-react-api
image: nyuvis/ela-helper-web-app:1.0.4
ports:
- "3000:3000"
restart: on-failure
volumes:
- ./runtime/nlp-data:/app/server/nlpData
- ./runtime/projections:/app/server/projections
stdin_open: true
tty: true
command: npm run start
environment:
- NODE_ENV=local
- DOC_FOLDER_NAME=nlpData
- TOPICS_FOLDER=projections
- ES_HOST=elasticsearch
- PORT=3000
depends_on:
- texas-api
texas-api:
container_name: texas-api
image: nyuvis/texas-web-app:1.0.1
environment:
ES_DEFAULT_HOST: elasticsearch
ES_DEFAULT_PORT: 9200
ES_DEFAULT_PATH: ""
ports:
- "4200:4200"
- "5555:5555"
- "5556:5556"
volumes:
- ./runtime/data:/data
- ./runtime/projections:/nlp/projections
- /app/node_modules
- /app/apps/texas-server/node_modules
- /app/apps/texas-cli/node_modules
- /app/lib/texas-js/node_modules
- /app/lib/texas-utils/node_modules
- /app/lib/texas-gql/node_modules
stdin_open: true
tty: true
command: npm start
texas-nlp:
image: nyuvis/texas-nlp-app:1.0.1
environment:
JUPYTER_PORT: 8888
ES_DEFAULT_HOST: elasticsearch
ES_DEFAULT_PORT: 9200
ES_DEFAULT_PATH:
TEXAS_DEFAULT_URL: http://texas-api:4200/api
stdin_open: true
tty: true
container_name: texas-nlp
volumes:
- ./runtime/nlp-data:/data
- ./runtime/nlp-data:/app/data
- ./runtime/notebooks:/app/notebooks
- ./runtime/projections:/nlp/projections
command: python /app/texas/server/server.py
ports:
- "8888:8888"