-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
153 lines (146 loc) · 4.92 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: '3.9'
services:
cloodcbr:
container_name: cloodcbr
build: './api'
image: cloodcbr/app:latest
environment:
- CLOOD_IS_DEV=${CLOOD_IS_DEV}
- CLOOD_ADMIN_USERNAME=${CLOOD_ADMIN_USERNAME}
- CLOOD_ADMIN_PASSWORD=${CLOOD_ADMIN_PASSWORD}
- CLOOD_AUTH_SECRET=${CLOOD_AUTH_SECRET}
- CLOOD_USE_VECTORISER_URL=${CLOOD_USE_VECTORISER_URL}
- CLOOD_SBERT_VECTORISER_URL=${CLOOD_SBERT_VECTORISER_URL}
- CLOOD_SBERT_SIM_URL=${CLOOD_SBERT_SIM_URL}
- CLOOD_ANGLE_VECTORISER_MATCHING_URL=${CLOOD_ANGLE_VECTORISER_MATCHING_URL}
- CLOOD_ANGLE_VECTORISER_RETRIEVAL_URL=${CLOOD_ANGLE_VECTORISER_RETRIEVAL_URL}
- CLOOD_ANGLE_SIM_MATCHING_URL=${CLOOD_ANGLE_SIM_MATCHING_URL}
- CLOOD_ANGLE_SIM_RETRIEVAL_URL=${CLOOD_ANGLE_SIM_RETRIEVAL_URL}
- CLOOD_SBERT_VECTORISER_ACCESS_KEY=${CLOOD_SBERT_VECTORISER_ACCESS_KEY}
- CLOOD_AWS_HOST=${CLOOD_AWS_HOST}
- CLOOD_AWS_REGION=${CLOOD_AWS_REGION}
- CLOOD_AWS_ACCESS_KEY=${CLOOD_AWS_ACCESS_KEY}
- CLOOD_AWS_SECRET_KEY_HERE=${CLOOD_AWS_SECRET_KEY_HERE}
working_dir: /app
networks:
- cloodcbr-net
volumes:
- ./api:/app
- clood-nodemodules:/app/node_modules
- clood-logs:/app/logs
ports: ['3000:3000', '3002:3002']
clood-dashboard:
container_name: cloodcbr-dashboard
build: './dashboard'
image: cloodcbr/dashboard:latest
working_dir: /dashboard
networks:
- cloodcbr-net
volumes:
- ./dashboard/app:/dashboard/app
ports:
- 8000:8000
cloodcbr-other-use:
container_name: cloodcbr-other-use
build: './other-services/use-vector'
image: cloodcbr/other-use:latest
working_dir: /app
networks:
- cloodcbr-net
ports:
- 4100:4100
profiles:
- other
cloodcbr-other-ontology-sim:
container_name: cloodcbr-other-ontology-sim
build: './other-services/ontology-sim'
image: cloodcbr/other-ontology-sim:latest
working_dir: /app
networks:
- cloodcbr-net
ports:
- 4200:3000
volumes:
- ./other-services/ontology-sim:/app
- clood-ontology-nodemodules:/app/node_modules
profiles:
- other
cloodcbr-other-semantic-sim:
container_name: cloodcbr-other-semantic-sim
build: './other-services/semantic-sim'
image: cloodcbr/other-semantic-sim:latest
working_dir: /app
environment:
- CLOOD_SEMANTIC_SIM_ACCESS_KEY=${CLOOD_SEMANTIC_SIM_ACCESS_KEY}
networks:
- cloodcbr-net
ports:
- 4300:80
volumes:
- ./other-services/semantic-sim:/app
restart: on-failure
profiles:
- other
cloodcbr-other-angle-semantic-sim:
container_name: cloodcbr-other-angle-semantic-sim
build: './other-services/angle-semantic-sim'
image: cloodcbr/other-angle-semantic-sim:latest
working_dir: /app
environment:
- CLOOD_SEMANTIC_SIM_ACCESS_KEY=${CLOOD_SEMANTIC_SIM_ACCESS_KEY}
networks:
- cloodcbr-net
ports:
- 4400:80
volumes:
- ./other-services/angle-semantic-sim:/app
restart: on-failure
profiles:
- other
clood-opensearch:
image: opensearchproject/opensearch:1.3.1
container_name: clood-opensearch
environment:
- cluster.name=opensearch-cluster
- node.name=clood-opensearch
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- "DISABLE_INSTALL_DEMO_CONFIG=true" # disables execution of install_demo_configuration.sh bundled with security plugin, which installs demo certificates and security configurations to OpenSearch
- "DISABLE_SECURITY_PLUGIN=true" # disables security plugin entirely in OpenSearch by setting plugins.security.disabled: true in opensearch.yml
- "discovery.type=single-node" # disables bootstrap checks that are enabled when network.host is set to a non-loopback address
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- clood-opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- cloodcbr-net
clood-opensearch-dashboard:
image: opensearchproject/opensearch-dashboards:1.3.0
container_name: clood-opensearch-dashboard
ports:
- 5601:5601
expose:
- "5601"
environment:
- 'OPENSEARCH_HOSTS=["http://clood-opensearch:9200"]'
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true" # disables security dashboards plugin in OpenSearch Dashboards
networks:
- cloodcbr-net
profiles:
- other
volumes:
clood-opensearch-data: {}
clood-nodemodules: {}
clood-ontology-nodemodules: {}
clood-logs: {}
networks:
cloodcbr-net:
driver: bridge