-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89b1a59
commit 31853f9
Showing
9 changed files
with
800 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
services: | ||
|
||
zookeeper: | ||
image: $ZOOKEEPER_IMAGE | ||
container_name: $ZOOKEEPER_HOST | ||
restart: $GENERIC_RESTART | ||
healthcheck: | ||
test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/$ZOOKEEPER_PORT; exit $?;'" | ||
interval: 10s | ||
retries: 60 | ||
start_period: 20s | ||
timeout: 10s | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: ${ZOOKEEPER_PORT} | ||
ZOOKEEPER_TICK_TIME: ${ZOOKEEPER_TICK_TIME} | ||
ports: | ||
- ${ZOOKEEPER_PORT}:2181 | ||
networks: | ||
- shared_network | ||
|
||
kafka: | ||
image: ${KAFKA_IMAGE} | ||
container_name: ${KAFKA_HOST} | ||
restart: ${GENERIC_RESTART} | ||
depends_on: | ||
zookeeper: | ||
condition: service_healthy | ||
healthcheck: | ||
test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/${KAFKA_PORT}; exit $?;'" | ||
interval: 10s | ||
retries: 60 | ||
start_period: 20s | ||
timeout: 10s | ||
ports: | ||
- ${KAFKA_EXTERNAL_PORT}:${KAFKA_EXTERNAL_PORT} | ||
environment: | ||
KAFKA_BROKER_ID: 1 | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://${KAFKA_BROKER_HOST} | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
networks: | ||
- shared_network | ||
|
||
kafdrop: | ||
image: ${KAFDROP_IMAGE} | ||
container_name: ${KAFDROP_HOST} | ||
hostname: ${KAFDROP_HOST} | ||
restart: ${GENERIC_RESTART} | ||
depends_on: | ||
kafka: | ||
condition: service_healthy | ||
environment: | ||
KAFKA_BROKERCONNECT: ${KAFDROP_KAFKA_HOST} | ||
ports: | ||
- ${KAFDROP_EXTERNAL_PORT}:${KAFDROP_PORT} | ||
networks: | ||
- shared_network | ||
|
||
opensearch-service: | ||
image: ${OPENSEARCH_IMAGE} | ||
container_name: ${OPENSEARCH_HOST} | ||
restart: ${GENERIC_RESTART} | ||
healthcheck: | ||
test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/9200; exit $?;'" | ||
interval: 10s | ||
retries: 60 | ||
start_period: 20s | ||
timeout: 10s | ||
environment: | ||
- node.name=opensearch-service | ||
- discovery.type=single-node | ||
- "DISABLE_INSTALL_DEMO_CONFIG=true" # Prevents execution of bundled demo script which installs demo certificates and security configurations to OpenSearch | ||
- "DISABLE_SECURITY_PLUGIN=true" # Disables Security plugin | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
nofile: | ||
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems | ||
hard: 65536 | ||
volumes: | ||
- volume_opensearch:/usr/share/opensearch/data | ||
- ./opensearch/snapshots:/mnt/snapshots | ||
- ./opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch.yml | ||
ports: | ||
- ${OPENSEARCH_PORT}:9200 | ||
- ${OPENSEARCH_PERFORMANCE_PORT}:9600 # required for Performance Analyzer | ||
networks: | ||
- shared_network | ||
|
||
opensearch-dashboards: | ||
image: ${OPENSEARCH_DASHBOARDS_IMAGE} | ||
container_name: ${OPENSEARCH_DASHBOARDS_HOST} | ||
hostname: ${OPENSEARCH_DASHBOARDS_HOST} | ||
healthcheck: | ||
test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/5601; exit $?;'" | ||
interval: 10s | ||
retries: 60 | ||
start_period: 20s | ||
timeout: 10s | ||
depends_on: | ||
opensearch-service: | ||
condition: service_healthy | ||
environment: | ||
OPENSEARCH_HOSTS: ${OPENSEARCH_DASHBOARDS_OPENSEARCH_HOSTS} | ||
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true | ||
ports: | ||
- ${OPENSEARCH_DASHBOARDS_EXTERNAL_PORT}:5601 # Map host port 5601 to container port 5601 | ||
networks: | ||
- shared_network | ||
|
||
networks: | ||
shared_network: | ||
name: ${DEFAULT_NETWORK} | ||
|
||
volumes: | ||
volume_opensearch: | ||
name: ${OPENSEARCH_VOLUME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.