-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
133 lines (121 loc) · 4.26 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
version: "3"
services:
uwazi:
build:
context: ./
args:
UWAZI_GIT_RELEASE_REF: ${UWAZI_GIT_RELEASE_REF:-production}
working_dir: /home/node/uwazi
ports:
- 3000:3000
environment:
- DBHOST=mongo
- DATABASE_NAME=uwazi_development
- ELASTICSEARCH_URL=http://elasticsearch:9200
- UPLOADS_FOLDER=/data/uploaded_documents
# - LOGS_DIR=/path/to/log
- IS_FIRST_RUN=${IS_FIRST_RUN:-false}
- IS_FIRST_DEMO_RUN=${IS_FIRST_DEMO_RUN:-false}
- RUN_YARN_MIGRATE_REINDEX=${RUN_YARN_MIGRATE_REINDEX:-false}
- UWAZI_GIT_RELEASE_REF=${UWAZI_GIT_RELEASE_REF:-production}
- DB_INITIALIZATION_PATH=${DB_INITIALIZATION_PATH:-/home/node/uwazi/database/blank_state/uwazi_development}
volumes:
- uploaded_documents:/data/uploaded_documents
depends_on:
- elasticsearch
- mongo
- redis
# elasticsearch:
# # image: docker.elastic.co/elasticsearch/elasticsearch:5.5.3
# # Based on https://github.com/huridocs/uwazi/releases/tag/1.123.2 . Please update this part in future
# image: docker.elastic.co/elasticsearch/elasticsearch:7.17.6
# restart: unless-stopped
# # command: elasticsearch -Expack.security.enabled=false -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
# command: elasticsearch -Expack.security.enabled=false -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:
# # - cluster.name=docker-cluster
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# # - xpack.security.enabled=false
# ulimits:
# memlock:
# soft: -1
# hard: -1
# volumes:
# - elasticsearch_data1:/usr/share/elasticsearch/data
# # Close these ports. No unprotected elasticsearch should be published.
# # ports:
# # - 9200:9200
elasticsearch:
build:
context: .
dockerfile: elastic-icu-7.17.6.Dockerfile
# container_name: uwazi-elasticsearch
volumes:
# - esdata01:/usr/share/elasticsearch/data
- elasticsearch_data1:/usr/share/elasticsearch/data
ports:
- '9200:9200'
environment:
- bootstrap.memory_lock=true
- indices.query.bool.max_clause_count=2048
- discovery.type=single-node
- 'ES_JAVA_OPTS=-Xms2g -Xmx2g'
- cluster.routing.allocation.disk.threshold_enabled=false
# 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:3.4
# Based on https://github.com/huridocs/uwazi/releases/tag/1.123.2 . Please update this part in future
# image: mongo:4.2
# Using mongo 6.0 (not 4.2 as suggested by Uwazi 1.123.2) because mongo-shell on 4.2 don't run on Debian bullseye
image: mongo:6.0
restart: unless-stopped
volumes:
# - ./data/mongo:/data/db
- mongodb_data1:/data/db
command: mongod
# command: mongod --smallfiles
# Don't publish unprotected mongod
# ports:
# - 27017:27017
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
redis:
image: 'redis:5.0.14'
# container_name: uwazi-redis
command: redis-server
ports:
- '6379:6379'
environment:
- REDIS_REPLICATION_MODE=master
volumes:
uploaded_documents:
driver: local
mongodb_data1:
driver: local
elasticsearch_data1:
driver: local