-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-services.yml
More file actions
65 lines (64 loc) · 2.16 KB
/
docker-services.yml
File metadata and controls
65 lines (64 loc) · 2.16 KB
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
# -*- 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:7
restart: "always"
read_only: true
ports:
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:6379:6379"
db:
image: postgres:14
restart: "always"
environment:
- "POSTGRES_USER=invenio"
- "POSTGRES_PASSWORD=invenio"
- "POSTGRES_DB=invenio"
ports:
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:5432:5432"
mq:
image: rabbitmq:3-management
restart: "always"
ports:
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:15672:15672"
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:5672:5672"
search:
# to use ES7: docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.1
image: opensearchproject/opensearch:3.2.0
environment:
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
- discovery.type=single-node
# Enable the following config for testing big datasets e.g 100k records
# - 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:
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:9200:9200"
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:9300:9300"
flower:
image: mher/flower
command: --broker=amqp://guest:guest@mq:5672/ --broker_api=http://guest:guest@mq:15672/api/
ports:
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:5555:5555"
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:3.2.0
ports:
- "${DOCKER_SERVICES_IP_BIND:-127.0.0.1}:5601:5601"
environment:
# settings only for development. DO NOT use in production!
- 'OPENSEARCH_HOSTS=["http://search:9200"]'
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true"