forked from rero/sonar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-services.yml
115 lines (114 loc) · 3.22 KB
/
docker-services.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
# -*- coding: utf-8 -*-
#
# Swiss Open Access Repository
# Copyright (C) 2021 RERO
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
version: '2.3'
services:
app:
build:
context: ./
args:
- ENVIRONMENT=DEV
image: sonar
environment:
- "INVENIO_ACCOUNTS_SESSION_REDIS_URL=redis://cache:6379/1"
- "INVENIO_BROKER_URL=amqp://guest:guest@mq:5672/"
- "INVENIO_CACHE_REDIS_URL=redis://cache:6379/0"
- "INVENIO_CACHE_TYPE=redis"
- "INVENIO_CELERY_BROKER_URL=amqp://guest:guest@mq:5672/"
- "INVENIO_CELERY_RESULT_BACKEND=redis://cache:6379/2"
- "INVENIO_SEARCH_ELASTIC_HOSTS=['es:9200']"
- "INVENIO_SECRET_KEY=CHANGE_ME"
- "INVENIO_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://sonar:sonar@db/sonar"
- "INVENIO_WSGI_PROXIES=2"
- "INVENIO_RATELIMIT_STORAGE_URL=redis://cache:6379/3"
- "INVENIO_SENTRY_DSN=https://[email protected]:8443/5"
lb:
build: ./docker/haproxy/
image: sonar-lb
restart: "unless-stopped"
ports:
- "80:80"
- "443:443"
- "8080:8080"
frontend:
build: ./docker/nginx/
image: sonar-frontend
restart: "unless-stopped"
ports:
- "80"
- "443"
cache:
image: redis
restart: "unless-stopped"
read_only: true
ports:
- "6379:6379"
db:
image: postgres:12
restart: "unless-stopped"
environment:
- "POSTGRES_USER=sonar"
- "POSTGRES_PASSWORD=sonar"
- "POSTGRES_DB=sonar"
ports:
- "5432:5432"
mq:
image: rabbitmq:3-management
restart: "unless-stopped"
ports:
- "15672:15672"
- "5672:5672"
es:
build: ./docker/elasticsearch/
image: elasticsearch-icu-7.10.2
restart: "unless-stopped"
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.type=single-node"
- "indices.query.bool.max_clause_count=3000"
- "path.repo=/var/tmp"
- "cluster.routing.allocation.disk.threshold_enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
ports:
- "9200:9200"
- "9300:9300"
volumes:
- /var/tmp
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.10.2
environment:
- "ELASTICSEARCH_HOSTS=http://es:9200"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "5601:5601"
flower:
image: mher/flower
command: --broker=amqp://guest:guest@mq:5672/ --broker_api=http://guest:guest@mq:15672/api/
ports:
- "5555:5555"
grobid:
image: lfoppiano/grobid:0.7.0
ports:
- "8070:8070"
- "8071:8071"