forked from FAIRmat-NFDI/nomad-distro-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
74 lines (70 loc) · 2.07 KB
/
docker-compose.yaml
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
#
# Copyright (c) 2018-2020 The NOMAD Authors.
#
# This file is part of NOMAD.
# See https://nomad-lab.eu for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
services:
# broker for celery
rabbitmq:
restart: "no"
image: rabbitmq:3.11.5
container_name: nomad_rabbitmq
environment:
- RABBITMQ_ERLANG_COOKIE=SWQOKODSQALRPCLNMEQG
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq
- RABBITMQ_DEFAULT_VHOST=/
ports:
- 5672:5672
volumes:
- nomad_rabbitmq:/var/lib/rabbitmq
# the search engine
elastic:
restart: "no"
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1
container_name: nomad_elastic
environment:
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.flood_stage=1gb
- cluster.routing.allocation.disk.watermark.low=4gb
- cluster.routing.allocation.disk.watermark.high=2gb
- discovery.type=single-node
- xpack.security.enabled=false
ports:
- 9200:9200
volumes:
- nomad_elastic:/usr/share/elasticsearch/data
# the user data db
mongo:
restart: "no"
image: mongo:5.0.6
container_name: nomad_mongo
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
ports:
- 27017:27017
volumes:
- nomad_mongo:/data/db
- nomad_mongo_config:/data/configdb
command: mongod
# --logpath=/dev/null # --quiet
volumes:
nomad_mongo:
nomad_mongo_config:
nomad_elastic:
nomad_rabbitmq: