-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
142 lines (132 loc) · 4.05 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
131
132
133
134
135
136
137
138
139
140
141
142
version: '2.2'
services:
mariadb:
restart: always
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:
restart: always
image: redis:latest
expose:
- "6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
retries: 5
volumes:
- redis-data:/data
elasticsearch:
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.6
command: elasticsearch -Enetwork.bind_host=0.0.0.0 -Ehttp.max_content_length=2000mb -Ebootstrap.system_call_filter=false
ports:
- 9200:9200
environment:
- ES_JAVA_OPTS=-Xms2g -Xmx2g
- ANONYMOUS_USER=true
volumes:
- elastic-data:/usr/share/elasticsearch/data
kibiter:
restart: always
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: always
image: onenashev/grimoirelabascode:latest
build:
context: .
dockerfile: grimoirelab.Dockerfile
volumes:
- ./settings/setup.cfg.template:/sirmordred-setup.cfg.template
- ./settings/projects.json:/home/grimoire/conf/projects.json
- /tmp/:/home/grimoire/logs
depends_on:
nginx:
condition: service_healthy
mem_limit: 4g
secrets:
- github-api-token
sortinghat:
restart: always
image: grimoirelab/sortinghat:0.17.0
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/
- ./settings/orgs_file.json:/home/grimoirelab/settings/orgs_file.json
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
sortinghat_worker:
restart: always
image: grimoirelab/sortinghat-worker:0.17.0
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
volumes:
- ./settings/orgs_file.json:/home/grimoirelab/settings/orgs_file.json
nginx:
restart: always
image: nginx:latest
volumes:
- ./settings/nginx.conf.template:/etc/nginx/templates/default.conf.template
- ./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:
mariadb-data:
redis-data:
elastic-data:
secrets:
github-api-token:
file: ./settings/github-api-token.txt