This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
forked from fititnt/uwazi-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (80 loc) · 2.44 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
version: "3"
services:
uwazi:
image: jorohr/uwazi:1.46.0
build: ./
working_dir: /home/node/uwazi
ports:
- 3000:3000
environment:
- DBHOST=mongo
- DATABASE_NAME=uwazi_development
- NODE_OPTIONS=--max-http-header-size=96384
- ELASTICSEARCH_URL=http://elasticsearch:9200
#- UPLOADS_FOLDER=/home/node/documents
# - LOGS_DIR=/path/to/log
- IS_FIRST_RUN=${IS_FIRST_RUN:-false}
volumes:
- ./documents:/home/node/uwazi/uploaded_documents
- ./custom_uploads:/home/node/uwazi/custom_uploads
- ./dump:/home/node/uwazi/dump
- ./log:/home/node/log
depends_on:
- elasticsearch
- mongo
elasticsearch:
image: elasticsearch:7.16.2
restart: unless-stopped
command: elasticsearch -Expack.security.enabled=false -Ediscovery.type=single-node -Ecluster.name=docker-cluster -Ehttp.port=9200 -Ehttp.cors.allow-origin="http://localhost:51000" -Ehttp.cors.enabled=true -Ehttp.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -Ehttp.cors.allow-credentials=true
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch_data:/usr/share/elasticsearch/data
# # dejavu "The Missing Web UI for Elasticsearch"
# # See https://github.com/appbaseio/dejavu
# # To configure, access http://localhost:51000 and use:
# # http://localhost:9200
# # uwazi_development
# elasticsearch-gui-dejavu:
# image: appbaseio/dejavu:latest
# # ports:
# #- "1358:1358"
# #- "51000:1358"
# depends_on:
# - elasticsearch
mongo:
image: mongo:4.2
restart: unless-stopped
volumes:
- ./data/mongo:/data/db
- ./dump:/dump
command: mongod
logging:
options:
max-size: 10m
max-file: '3'
# Cross-platform and self hosted, easy to use mongodb management tool - Formerly Mongoclient
# See https://github.com/nosqlclient/nosqlclient
#mongo-gui-mongoclient:
# image: mongoclient/mongoclient:latest
# volumes:
# - ./data/mongo:/data/db
# environment:
# - MONGO_URL=mongodb://mongo:27017
# depends_on:
# - mongo
# ports:
# - 52000:3000
#volumes:
# uploaded_documents:
# driver: local
# mongodb_data1:
# driver: local
# elasticsearch_data1:
# driver: local
#
#