-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-cluster.yml
91 lines (85 loc) · 2.64 KB
/
docker-compose-cluster.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
# Copyright 2024 The ModelarDB Contributors
#
# 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.
version: "3.8"
services:
# Object store services.
minio-server:
image: minio/minio
container_name: minio-server
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server --console-address ":9001" /data
create-bucket:
image: minio/mc
container_name: create-bucket
depends_on:
- minio-server
entrypoint:
/bin/sh -c "
/usr/bin/mc config host add modelardb-minio http://minio-server:9000 minioadmin minioadmin;
/usr/bin/mc mb modelardb-minio/modelardb;
exit 0;
"
# ModelarDB services.
modelardb-manager:
image: modelardb
build: .
container_name: modelardb-manager
command: ["target/debug/modelardbm", "s3://modelardb"]
ports:
- "9998:9998"
environment:
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
AWS_DEFAULT_REGION: eu-central-1
AWS_ENDPOINT: http://minio-server:9000
AWS_ALLOW_HTTP: "true"
depends_on:
- minio-server
- create-bucket
modelardb-edge:
image: modelardb
container_name: modelardb-edge
command: ["target/debug/modelardbd", "edge", "data/edge", "grpc://modelardb-manager:9998"]
ports:
- "9999:9999"
environment:
MODELARDBD_UNCOMPRESSED_DATA_BUFFER_CAPACITY: 640
MODELARDBD_COMPRESSED_RESERVED_MEMORY_IN_BYTES: 10000
MODELARDBD_TRANSFER_BATCH_SIZE_IN_BYTES: 10000
MODELARDBD_IP_ADDRESS: host.docker.internal
restart: on-failure:10
depends_on:
- modelardb-manager
volumes:
- ./data/edge:/usr/src/app/data/edge
modelardb-cloud:
image: modelardb
container_name: modelardb-cloud
command: [ "target/debug/modelardbd", "cloud", "data/cloud", "grpc://modelardb-manager:9998"]
ports:
- "9997:9997"
environment:
MODELARDBD_PORT: 9997
MODELARDBD_IP_ADDRESS: host.docker.internal
restart: on-failure:10
depends_on:
- modelardb-manager
- modelardb-edge
volumes:
- ./data/cloud:/usr/src/app/data/cloud