2020-08-06 16:38:53 -07:00
|
|
|
# Docker compose file covering DataHub's default configuration, which is to run all containers on a single host.
|
|
|
|
|
|
|
|
# Please see the README.md for instructions as to how to use and customize.
|
|
|
|
|
2022-01-27 09:48:01 -08:00
|
|
|
# NOTE: This file does not build! No dockerfiles are set. See the README.md in this directory.
|
2020-08-06 16:38:53 -07:00
|
|
|
---
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
zookeeper:
|
|
|
|
image: confluentinc/cp-zookeeper:5.4.0
|
|
|
|
env_file: zookeeper/env/docker.env
|
|
|
|
hostname: zookeeper
|
|
|
|
container_name: zookeeper
|
|
|
|
ports:
|
|
|
|
- "2181:2181"
|
|
|
|
volumes:
|
|
|
|
- zkdata:/var/opt/zookeeper
|
|
|
|
|
|
|
|
broker:
|
|
|
|
image: confluentinc/cp-kafka:5.4.0
|
|
|
|
env_file: broker/env/docker.env
|
|
|
|
hostname: broker
|
|
|
|
container_name: broker
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
ports:
|
|
|
|
- "29092:29092"
|
|
|
|
- "9092:9092"
|
2022-02-02 00:35:43 +00:00
|
|
|
volumes:
|
|
|
|
- broker:/var/lib/kafka/data/
|
2020-08-06 16:38:53 -07:00
|
|
|
|
|
|
|
# This "container" is a workaround to pre-create topics
|
|
|
|
kafka-setup:
|
|
|
|
build:
|
|
|
|
context: kafka-setup
|
2022-01-27 09:48:01 -08:00
|
|
|
image: linkedin/datahub-kafka-setup:${DATAHUB_VERSION:-head}
|
2020-08-06 16:38:53 -07:00
|
|
|
env_file: kafka-setup/env/docker.env
|
|
|
|
hostname: kafka-setup
|
|
|
|
container_name: kafka-setup
|
|
|
|
depends_on:
|
|
|
|
- broker
|
|
|
|
- schema-registry
|
|
|
|
|
|
|
|
schema-registry:
|
|
|
|
image: confluentinc/cp-schema-registry:5.4.0
|
|
|
|
env_file: schema-registry/env/docker.env
|
|
|
|
hostname: schema-registry
|
|
|
|
container_name: schema-registry
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- broker
|
|
|
|
ports:
|
|
|
|
- "8081:8081"
|
|
|
|
|
|
|
|
elasticsearch:
|
2021-03-18 19:16:44 -07:00
|
|
|
image: elasticsearch:7.9.3
|
2020-08-06 16:38:53 -07:00
|
|
|
env_file: elasticsearch/env/docker.env
|
|
|
|
container_name: elasticsearch
|
|
|
|
hostname: elasticsearch
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
2022-03-15 19:05:52 +00:00
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
|
|
|
- xpack.security.enabled=false
|
2020-08-06 16:38:53 -07:00
|
|
|
volumes:
|
|
|
|
- esdata:/usr/share/elasticsearch/data
|
2021-03-26 10:03:51 -07:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "curl -sS --fail 'http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=0s' || exit 1"]
|
|
|
|
start_period: 2m
|
|
|
|
retries: 4
|
2020-08-06 16:38:53 -07:00
|
|
|
|
2021-12-14 10:49:03 -08:00
|
|
|
neo4j:
|
|
|
|
image: neo4j:4.0.6
|
|
|
|
env_file: neo4j/env/docker.env
|
|
|
|
hostname: neo4j
|
|
|
|
container_name: neo4j
|
|
|
|
ports:
|
|
|
|
- "7474:7474"
|
|
|
|
- "7687:7687"
|
|
|
|
volumes:
|
|
|
|
- neo4jdata:/data
|
|
|
|
|
2020-08-06 16:38:53 -07:00
|
|
|
# This "container" is a workaround to pre-create search indices
|
|
|
|
elasticsearch-setup:
|
|
|
|
build:
|
2020-12-02 20:49:34 -08:00
|
|
|
context: ../
|
|
|
|
dockerfile: docker/elasticsearch-setup/Dockerfile
|
2022-01-27 09:48:01 -08:00
|
|
|
image: linkedin/datahub-elasticsearch-setup:${DATAHUB_VERSION:-head}
|
2020-08-06 16:38:53 -07:00
|
|
|
env_file: elasticsearch-setup/env/docker.env
|
|
|
|
hostname: elasticsearch-setup
|
|
|
|
container_name: elasticsearch-setup
|
|
|
|
depends_on:
|
|
|
|
- elasticsearch
|
|
|
|
|
|
|
|
datahub-gms:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/datahub-gms/Dockerfile
|
2022-01-27 09:48:01 -08:00
|
|
|
image: linkedin/datahub-gms:${DATAHUB_VERSION:-head}
|
2020-08-06 16:38:53 -07:00
|
|
|
hostname: datahub-gms
|
|
|
|
container_name: datahub-gms
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- elasticsearch-setup
|
|
|
|
- kafka-setup
|
|
|
|
- mysql
|
2021-12-14 10:49:03 -08:00
|
|
|
- neo4j
|
2020-08-06 16:38:53 -07:00
|
|
|
|
2021-03-18 09:55:05 -07:00
|
|
|
datahub-frontend-react:
|
2020-08-06 16:38:53 -07:00
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/datahub-frontend/Dockerfile
|
2022-01-27 09:48:01 -08:00
|
|
|
image: linkedin/datahub-frontend-react:${DATAHUB_VERSION:-head}
|
2020-08-06 16:38:53 -07:00
|
|
|
env_file: datahub-frontend/env/docker.env
|
2021-03-18 09:55:05 -07:00
|
|
|
hostname: datahub-frontend-react
|
|
|
|
container_name: datahub-frontend-react
|
2020-08-06 16:38:53 -07:00
|
|
|
ports:
|
2021-03-18 09:55:05 -07:00
|
|
|
- "9002:9002"
|
2020-08-06 16:38:53 -07:00
|
|
|
depends_on:
|
|
|
|
- datahub-gms
|
2022-03-03 19:22:35 -08:00
|
|
|
volumes:
|
|
|
|
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
|
2020-08-06 16:38:53 -07:00
|
|
|
|
2022-01-27 10:33:12 -08:00
|
|
|
datahub-actions:
|
2022-05-12 23:41:56 -07:00
|
|
|
image: acryldata/datahub-actions:${ACTIONS_VERSION:-head}
|
2022-01-27 10:33:12 -08:00
|
|
|
hostname: actions
|
|
|
|
env_file: datahub-actions/env/docker.env
|
2022-03-09 01:25:21 +05:30
|
|
|
restart: on-failure:5
|
2022-01-27 10:33:12 -08:00
|
|
|
depends_on:
|
|
|
|
- datahub-gms
|
|
|
|
|
2020-08-06 16:38:53 -07:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: datahub_network
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
esdata:
|
2021-12-14 10:49:03 -08:00
|
|
|
neo4jdata:
|
2020-08-06 16:38:53 -07:00
|
|
|
zkdata:
|
2022-02-02 00:35:43 +00:00
|
|
|
broker:
|