2022-04-26 01:29:24 +01: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.
|
|
|
|
|
|
|
|
# NOTE: This file does not build! No dockerfiles are set. See the README.md in this directory.
|
|
|
|
---
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
zookeeper:
|
2023-01-24 16:12:57 +00:00
|
|
|
image: confluentinc/cp-zookeeper:7.2.2
|
2022-04-26 01:29:24 +01:00
|
|
|
env_file: zookeeper/env/docker.env
|
|
|
|
hostname: zookeeper
|
|
|
|
container_name: zookeeper
|
|
|
|
ports:
|
|
|
|
- "2181:2181"
|
|
|
|
volumes:
|
2022-09-25 10:39:22 -05:00
|
|
|
- zkdata:/var/lib/zookeeper
|
2022-04-26 01:29:24 +01:00
|
|
|
|
|
|
|
broker:
|
2023-01-24 16:12:57 +00:00
|
|
|
image: confluentinc/cp-kafka:7.2.2
|
2022-04-26 01:29:24 +01:00
|
|
|
env_file: broker/env/docker.env
|
|
|
|
hostname: broker
|
|
|
|
container_name: broker
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
ports:
|
|
|
|
- "29092:29092"
|
|
|
|
- "9092:9092"
|
|
|
|
volumes:
|
|
|
|
- broker:/var/lib/kafka/data/
|
|
|
|
|
|
|
|
schema-registry:
|
2023-01-24 16:12:57 +00:00
|
|
|
image: confluentinc/cp-schema-registry:7.2.2
|
2022-04-26 01:29:24 +01:00
|
|
|
env_file: schema-registry/env/docker.env
|
|
|
|
hostname: schema-registry
|
|
|
|
container_name: schema-registry
|
|
|
|
depends_on:
|
|
|
|
- broker
|
|
|
|
ports:
|
2023-05-01 13:18:41 -05:00
|
|
|
- ${DATAHUB_MAPPED_SCHEMA_REGISTRY_PORT:-8081}:8081
|
2022-04-26 01:29:24 +01:00
|
|
|
|
|
|
|
elasticsearch:
|
2023-01-31 18:44:37 -06:00
|
|
|
image: elasticsearch:7.10.1
|
2022-04-26 01:29:24 +01:00
|
|
|
env_file: elasticsearch/env/docker.env
|
|
|
|
container_name: elasticsearch
|
|
|
|
hostname: elasticsearch
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
|
|
|
- xpack.security.enabled=false
|
|
|
|
volumes:
|
|
|
|
- esdata:/usr/share/elasticsearch/data
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# This "container" is a workaround to pre-create search indices
|
|
|
|
elasticsearch-setup:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/elasticsearch-setup/Dockerfile
|
2022-07-26 11:32:02 +05:30
|
|
|
image: ${DATAHUB_ELASTIC_SETUP_IMAGE:-linkedin/datahub-elasticsearch-setup}:${DATAHUB_VERSION:-head}
|
2022-04-26 01:29:24 +01:00
|
|
|
env_file: elasticsearch-setup/env/docker.env
|
|
|
|
hostname: elasticsearch-setup
|
|
|
|
container_name: elasticsearch-setup
|
|
|
|
depends_on:
|
|
|
|
- elasticsearch
|
|
|
|
|
|
|
|
cassandra:
|
|
|
|
container_name: cassandra
|
|
|
|
hostname: cassandra
|
|
|
|
image: cassandra:3.11
|
|
|
|
ports:
|
|
|
|
- '9042:9042'
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces"]
|
|
|
|
interval: 15s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
|
|
|
volumes:
|
|
|
|
- cassandradata:/var/lib/cassandra
|
|
|
|
|
|
|
|
cassandra-setup:
|
|
|
|
container_name: cassandra-setup
|
|
|
|
image: cassandra:3.11
|
|
|
|
depends_on:
|
|
|
|
cassandra:
|
|
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
|
|
- ./cassandra/init.cql:/init.cql
|
|
|
|
command: /bin/bash -c "cqlsh cassandra -f /init.cql"
|
|
|
|
|
|
|
|
datahub-gms:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/datahub-gms/Dockerfile
|
2022-07-26 11:32:02 +05:30
|
|
|
image: ${DATAHUB_GMS_IMAGE:-linkedin/datahub-gms}:${DATAHUB_VERSION:-head}
|
2022-04-26 01:29:24 +01:00
|
|
|
env_file: ./datahub-gms/env/docker.cassandra.env
|
|
|
|
hostname: datahub-gms
|
|
|
|
container_name: datahub-gms
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- neo4j
|
|
|
|
|
|
|
|
datahub-frontend-react:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/datahub-frontend/Dockerfile
|
2022-07-26 11:32:02 +05:30
|
|
|
image: ${DATAHUB_FRONTEND_IMAGE:-linkedin/datahub-frontend-react}:${DATAHUB_VERSION:-head}
|
2022-04-26 01:29:24 +01:00
|
|
|
env_file: datahub-frontend/env/docker.env
|
|
|
|
hostname: datahub-frontend-react
|
|
|
|
container_name: datahub-frontend-react
|
|
|
|
ports:
|
|
|
|
- "9002:9002"
|
|
|
|
depends_on:
|
|
|
|
- datahub-gms
|
|
|
|
volumes:
|
|
|
|
- ${HOME}/.datahub/plugins:/etc/datahub/plugins
|
|
|
|
|
|
|
|
datahub-actions:
|
2022-05-12 23:41:56 -07:00
|
|
|
image: acryldata/datahub-actions:${ACTIONS_VERSION:-head}
|
2022-04-26 01:29:24 +01:00
|
|
|
hostname: actions
|
|
|
|
env_file: datahub-actions/env/docker.env
|
|
|
|
restart: on-failure:5
|
|
|
|
depends_on:
|
|
|
|
- datahub-gms
|
|
|
|
|
2023-01-31 18:44:37 -06:00
|
|
|
datahub-upgrade:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: docker/datahub-upgrade/Dockerfile
|
|
|
|
image: ${DATAHUB_UPGRADE_IMAGE:-acryldata/datahub-upgrade}:${DATAHUB_VERSION:-head}
|
|
|
|
env_file: datahub-upgrade/env/docker-without-neo4j.env
|
|
|
|
hostname: datahub-upgrade
|
|
|
|
container_name: datahub-upgrade
|
|
|
|
command: [ "-u", "SystemUpdate" ]
|
|
|
|
|
2022-04-26 01:29:24 +01:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: datahub_network
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
cassandradata:
|
|
|
|
esdata:
|
|
|
|
neo4jdata:
|
|
|
|
zkdata:
|
|
|
|
broker:
|