forked from huridocs/uwazi
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (127 loc) · 3.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
134 lines (127 loc) · 3.09 KB
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
services:
elasticsearch:
build:
context: .
dockerfile: elastic-icu-8.18.0.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
- xpack.security.transport.ssl.enabled=false
- xpack.security.enabled=false
- xpack.ml.enabled=false
healthcheck:
test:
[
"CMD-SHELL",
"curl -fsSL http://localhost:9200/_cluster/health | grep -q '\"status\":\"green\"'",
]
interval: 30s
timeout: 10s
retries: 3
networks:
- uwazi_network
mongo:
image: "mongo:8"
container_name: uwazi-mongo
command: mongod --replSet "uwazi_replica_set"
volumes:
- mongodata:/data/db
ports:
- '27017:27017'
healthcheck:
test: ['CMD', 'mongosh', '--eval', "db.adminCommand('ping')"]
interval: 30s
timeout: 10s
retries: 5
networks:
- uwazi_network
mongoreplicaset_start_script:
image: "mongo:8"
restart: "no"
container_name: mongoreplicaset_start_script
depends_on:
- mongo
entrypoint: [ "bash", "-c", "sleep 10 && mongosh --host mongo:27017 --eval 'rs.initiate();cfg = rs.config(); cfg.members[0].host = \"mongo:27017\";rs.reconfig(cfg, {force:true})'"]
networks:
- uwazi_network
redis:
image: 'redis:7'
container_name: uwazi-redis
command: redis-server
ports:
- '6379:6379'
environment:
- REDIS_REPLICATION_MODE=master
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 30s
timeout: 10s
retries: 3
networks:
- uwazi_network
minio:
image: minio/minio
container_name: uwazi-s3
ports:
- '9000:9000'
- '9001:9001'
volumes:
- ./storage/minio:/data
command: server /data --console-address :9001
healthcheck:
test:
[
"CMD-SHELL",
"curl -fsSL http://localhost:9000/minio/health/live || exit 1",
]
interval: 30s
timeout: 10s
retries: 3
networks:
- uwazi_network
uwazi:
build:
context: .
dockerfile: Dockerfile
container_name: uwazi-app
depends_on:
- mongo
- mongoreplicaset_start_script
- elasticsearch
- redis
- minio
environment:
- MONGO_URI=mongodb://mongo/uwazi_development
- DATABASE_NAME=uwazi_development
- REDIS_HOST=redis
- ELASTICSEARCH_URL=http://elasticsearch:9200
- INDEX_NAME=uwazi_development
- USE_ELASTIC_ICU=true
ports:
- '3000:3000'
healthcheck:
test:
[
"CMD-SHELL",
"curl -fsSL http://localhost:3000 || exit 1"
]
interval: 30s
timeout: 10s
retries: 3
networks:
- uwazi_network
volumes:
esdata01:
driver: local
mongodata:
driver: local
networks:
uwazi_network: