-
Notifications
You must be signed in to change notification settings - Fork 957
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
- Loading branch information
1 parent
d9dc91d
commit f194730
Showing
4 changed files
with
72 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
version: '3' | ||
services: | ||
opensearch-node: | ||
image: opensearchproject/opensearch:latest | ||
container_name: opensearch-node | ||
environment: | ||
- cluster.name=opensearch-cluster # Name the cluster | ||
- node.name=opensearch-node # Name the node that will run in this container | ||
- discovery.seed_hosts=opensearch-node # Nodes to look for when discovering the cluster | ||
- cluster.initial_cluster_manager_nodes=opensearch-node # Nodes eligibile to serve as cluster manager | ||
- bootstrap.memory_lock=true # Disable JVM heap memory swapping | ||
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Set min and max JVM heap sizes to at least 50% of system RAM | ||
- "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 # Set memlock to unlimited (no soft or hard limit) | ||
hard: -1 | ||
nofile: | ||
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536 | ||
hard: 65536 | ||
volumes: | ||
- opensearch-data:/usr/share/opensearch/data # Creates volume called opensearch-data1 and mounts it to the container | ||
ports: | ||
- 9200:9200 # REST API | ||
- 9600:9600 # Performance Analyzer | ||
networks: | ||
- opensearch-net # All of the containers will join the same Docker bridge network | ||
dev-env: | ||
image: docker.io/library/opensearch-dashboards-dev:latest | ||
container_name: dev-env | ||
ports: | ||
- 5601:5601 | ||
- 5603:5603 | ||
stdin_open: true | ||
tty: true | ||
expose: | ||
- "5601" | ||
- "5603" | ||
environment: | ||
- 'OPENSEARCH_HOSTS=["http://opensearch-node:9200"]' | ||
- 'SERVER_HOST="0.0.0.0"' | ||
- 'REPO_URL=${REPO_URL}' | ||
volumes: | ||
- osd-dev:/home/osd-dev | ||
- ./entrypoint.sh:/entrypoint.sh | ||
networks: | ||
- opensearch-net | ||
entrypoint: | ||
- /bin/bash | ||
- /entrypoint.sh | ||
volumes: | ||
opensearch-data: | ||
osd-dev: | ||
networks: | ||
opensearch-net: |
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,5 @@ | ||
#!/bin/bash | ||
echo $REPO_URL | ||
git remote set-url origin $REPO_URL | ||
git fetch | ||
tail -f /dev/null |
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