forked from chaoss/grimoirelab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
117 lines (108 loc) · 3.45 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
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
redis:
image: redis:latest
expose:
- "6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
retries: 5
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.6
command: elasticsearch -Enetwork.bind_host=0.0.0.0 -Ehttp.max_content_length=2000mb
ports:
- 9200:9200
environment:
- ES_JAVA_OPTS=-Xms2g -Xmx2g
- ANONYMOUS_USER=true
kibiter:
restart: on-failure:5
image: bitergia/kibiter:community-v6.8.6-3
environment:
- PROJECT_NAME=Demo
- NODE_OPTIONS=--max-old-space-size=1000
- ELASTICSEARCH_URL=http://elasticsearch:9200
links:
- elasticsearch
ports:
- 5601:5601
mordred:
restart: on-failure:5
image: grimoirelab/grimoirelab:latest
volumes:
- ../default-grimoirelab-settings/setup.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://kibiter:5601/
depends_on:
- sortinghat
healthcheck:
test: "curl -s --head http://localhost:8000/identities/api/ | grep Set-Cookie || exit 1"
retries: 5
volumes:
sortinghat-static: