forked from CERNDocumentServer/cds-ils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-services.yml
61 lines (60 loc) · 1.56 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
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CERN.
#
# CDS-ILS is free software; you can redistribute it and/or modify it under
# the terms of the MIT License; see LICENSE file for more details.
version: '2.3'
services:
cache:
image: redis
restart: "always"
read_only: true
ports:
- "6379:6379"
db:
image: postgres:12.4
restart: "always"
environment:
- "POSTGRES_USER=invenio"
- "POSTGRES_PASSWORD=invenio"
- "POSTGRES_DB=invenio"
ports:
- "5432:5432"
mq:
image: rabbitmq:3-management
restart: "always"
ports:
- "15672:15672"
- "5672:5672"
es:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.1
restart: "always"
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.flood_stage=1gb
- cluster.routing.allocation.disk.watermark.low=100gb
- cluster.routing.allocation.disk.watermark.high=50gb
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- "9200:9200"
- "9300:9300"
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.9.1
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"