-
Notifications
You must be signed in to change notification settings - Fork 184
/
docker-compose-opensearch.yml
130 lines (121 loc) · 3.99 KB
/
docker-compose-opensearch.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: '2.2'
services:
mariadb:
image: mariadb:10.6
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
healthcheck:
test: [ "CMD", "/usr/local/bin/healthcheck.sh", "--su=root", "--connect", "--innodb_initialized" ]
retries: 5
volumes:
- mariadb_data:/var/lib/mysql
redis:
image: redis:latest
expose:
- "6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
retries: 5
opensearch-node1:
image: opensearchproject/opensearch:2.11.1
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- discovery.type=single-node
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms2g -Xmx2g" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
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
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
volumes:
- opensearch-data:/usr/share/opensearch/data
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.11.1
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["https://opensearch-node1:9200"]'
mordred:
restart: on-failure:5
image: grimoirelab/grimoirelab:latest
volumes:
- ../default-grimoirelab-settings/setup-opensearch.cfg:/home/grimoire/conf/setup.cfg
- ../default-grimoirelab-settings/projects.json:/home/grimoire/conf/projects.json
- /tmp/:/home/grimoire/logs
depends_on:
nginx:
condition: service_healthy
mem_limit: 4g
sortinghat:
restart: on-failure:3
image: grimoirelab/sortinghat
environment:
- SORTINGHAT_SECRET_KEY=secret
- SORTINGHAT_DB_HOST=mariadb
- SORTINGHAT_DB_PORT=3306
- SORTINGHAT_DB_DATABASE=sortinghat_db
- SORTINGHAT_DB_USER=root
- SORTINGHAT_DB_PASSWORD=
- SORTINGHAT_REDIS_HOST=redis
- SORTINGHAT_REDIS_PASSWORD=
- SORTINGHAT_SUPERUSER_USERNAME=root
- SORTINGHAT_SUPERUSER_PASSWORD=root
- SORTINGHAT_ALLOWED_HOST=sortinghat,nginx,localhost,127.0.0.1,[::1]
- SORTINGHAT_CORS_ALLOWED_ORIGINS=http://localhost:8000,http://127.0.0.1:8000
expose:
- "9314"
volumes:
- sortinghat-static:/opt/venv/lib/python3.9/site-packages/sortinghat/static/
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
sortinghat_worker:
image: grimoirelab/sortinghat-worker
environment:
- SORTINGHAT_SECRET_KEY=secret
- SORTINGHAT_DB_HOST=mariadb
- SORTINGHAT_DB_PORT=3306
- SORTINGHAT_DB_DATABASE=sortinghat_db
- SORTINGHAT_DB_USER=root
- SORTINGHAT_DB_PASSWORD=
- SORTINGHAT_REDIS_HOST=redis
- SORTINGHAT_REDIS_PASSWORD=
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
nginx:
restart: on-failure:3
image: nginx:latest
volumes:
- ../default-grimoirelab-settings/nginx.conf.template:/etc/nginx/templates/default.conf.template
- ../default-grimoirelab-settings/uwsgi_params:/etc/nginx/uwsgi_params
- sortinghat-static:/sortinghat:ro
ports:
- 8000:8000
environment:
- KIBANA_HOST=http://opensearch-dashboards:5601/
depends_on:
- sortinghat
healthcheck:
test: "curl -s --head http://localhost:8000/identities/api/ | grep Set-Cookie || exit 1"
retries: 5
volumes:
sortinghat-static:
opensearch-data:
mariadb_data: