2019-02-08 07:12:28 -05:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you 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: "2.2"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
metadata_data: {}
|
|
|
|
middle_var: {}
|
|
|
|
historical_var: {}
|
|
|
|
broker_var: {}
|
|
|
|
coordinator_var: {}
|
2019-07-22 14:40:05 -04:00
|
|
|
router_var: {}
|
2021-06-01 20:33:27 -04:00
|
|
|
druid_shared: {}
|
2019-02-08 07:12:28 -05:00
|
|
|
|
2020-02-14 00:24:45 -05:00
|
|
|
|
2019-02-08 07:12:28 -05:00
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
container_name: postgres
|
|
|
|
image: postgres:latest
|
2023-01-04 08:16:40 -05:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
2019-02-08 07:12:28 -05:00
|
|
|
volumes:
|
|
|
|
- metadata_data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=FoolishPassword
|
|
|
|
- POSTGRES_USER=druid
|
|
|
|
- POSTGRES_DB=druid
|
|
|
|
|
|
|
|
# Need 3.5 or later for container nodes
|
|
|
|
zookeeper:
|
|
|
|
container_name: zookeeper
|
2023-03-15 09:51:09 -04:00
|
|
|
image: zookeeper:3.5.10
|
2021-03-26 06:57:44 -04:00
|
|
|
ports:
|
|
|
|
- "2181:2181"
|
2019-02-08 07:12:28 -05:00
|
|
|
environment:
|
|
|
|
- ZOO_MY_ID=1
|
|
|
|
|
|
|
|
coordinator:
|
2024-04-25 23:52:43 -04:00
|
|
|
image: apache/druid:31.0.0
|
2019-02-08 07:12:28 -05:00
|
|
|
container_name: coordinator
|
|
|
|
volumes:
|
2021-06-01 20:33:27 -04:00
|
|
|
- druid_shared:/opt/shared
|
2019-02-08 07:12:28 -05:00
|
|
|
- coordinator_var:/opt/druid/var
|
2023-01-04 08:16:40 -05:00
|
|
|
depends_on:
|
2019-02-08 07:12:28 -05:00
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
ports:
|
2020-02-14 00:24:45 -05:00
|
|
|
- "8081:8081"
|
2019-02-08 07:12:28 -05:00
|
|
|
command:
|
|
|
|
- coordinator
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
broker:
|
2024-04-25 23:52:43 -04:00
|
|
|
image: apache/druid:31.0.0
|
2019-02-08 07:12:28 -05:00
|
|
|
container_name: broker
|
|
|
|
volumes:
|
|
|
|
- broker_var:/opt/druid/var
|
2023-01-04 08:16:40 -05:00
|
|
|
depends_on:
|
2019-02-08 07:12:28 -05:00
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
2020-02-14 00:24:45 -05:00
|
|
|
- "8082:8082"
|
2019-02-08 07:12:28 -05:00
|
|
|
command:
|
|
|
|
- broker
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
historical:
|
2024-04-25 23:52:43 -04:00
|
|
|
image: apache/druid:31.0.0
|
2019-02-08 07:12:28 -05:00
|
|
|
container_name: historical
|
|
|
|
volumes:
|
2021-06-01 20:33:27 -04:00
|
|
|
- druid_shared:/opt/shared
|
2019-02-08 07:12:28 -05:00
|
|
|
- historical_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
2020-02-14 00:24:45 -05:00
|
|
|
- "8083:8083"
|
2019-02-08 07:12:28 -05:00
|
|
|
command:
|
|
|
|
- historical
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
middlemanager:
|
2024-04-25 23:52:43 -04:00
|
|
|
image: apache/druid:31.0.0
|
2019-02-08 07:12:28 -05:00
|
|
|
container_name: middlemanager
|
|
|
|
volumes:
|
2021-06-01 20:33:27 -04:00
|
|
|
- druid_shared:/opt/shared
|
2019-02-08 07:12:28 -05:00
|
|
|
- middle_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
2020-02-14 00:24:45 -05:00
|
|
|
- "8091:8091"
|
2021-03-26 06:57:44 -04:00
|
|
|
- "8100-8105:8100-8105"
|
2019-02-08 07:12:28 -05:00
|
|
|
command:
|
|
|
|
- middleManager
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
2019-07-22 14:40:05 -04:00
|
|
|
router:
|
2024-04-25 23:52:43 -04:00
|
|
|
image: apache/druid:31.0.0
|
2019-07-22 14:40:05 -04:00
|
|
|
container_name: router
|
|
|
|
volumes:
|
|
|
|
- router_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
2020-02-14 00:24:45 -05:00
|
|
|
- "8888:8888"
|
2019-07-22 14:40:05 -04:00
|
|
|
command:
|
|
|
|
- router
|
|
|
|
env_file:
|
|
|
|
- environment
|