-
Notifications
You must be signed in to change notification settings - Fork 80
/
docker-compose.yml
59 lines (54 loc) · 1.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
version: '3'
services:
elasticsearch:
build:
context: .
dockerfile: elastic-icu-7.17.6.Dockerfile
container_name: uwazi-elasticsearch
volumes:
- esdata01:/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
mongo:
image: "mongo:5.0.27"
container_name: uwazi-mongo
command: mongod --replSet "uwazi_replica_set"
volumes:
- mongodata:/data/db
ports:
- '27017:27017'
mongoreplicaset_start_script:
image: "mongo:5.0.27"
restart: "no"
container_name: mongoreplicaset_start_script
depends_on:
- mongo
entrypoint: [ "bash", "-c", "sleep 1 && mongo --host mongo:27017 --eval 'rs.initiate();cfg = rs.config(); cfg.members[0].host = \"localhost:27017\";rs.reconfig(cfg, {force:true})'"]
redis:
image: 'redis:5.0.14'
container_name: uwazi-redis
command: redis-server
ports:
- '6379:6379'
environment:
- REDIS_REPLICATION_MODE=master
minio:
image: minio/minio
container_name: uwazi-s3
ports:
- '9000:9000'
- '9001:9001'
volumes:
- ./storage/minio:/data
command: server /data --console-address :9001
volumes:
esdata01:
driver: local
mongodata:
driver: local