opensearch-docs-cn/assets/examples/docker-compose.yml

68 lines
3.0 KiB
YAML
Raw Normal View History

Adds a quickstart guide (#1739) * Beginning quickstart guide Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Add sample docker compose yaml to assets Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding verbiage about compose commands Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * More additions but saving before a lunch break Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Remove sample compose file from the quickstart guide since it is linked externally Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added first common problem Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Formatting of common issues - oh and I renamed it common issues because problems sounds too negative Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Formatting Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding more content. I love Starbucks White Chocolate Mocha creamer Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Indentation Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added common issue re: docker perms Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Changing the common issues section around a bit so the ordering makes more sense Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Removed blank target from important settings links since we don't do that for other links Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Updates Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Committing changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added newline to docker compose file and started working on steps in the guide Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding steps Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added cURL command for example query Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Reworded intro paragraph and added more steps. Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added tip about using the pretty query parameter Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Editing Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added dashboards content and working on next steps segue Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Wrapping up for the day Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Cleaning up before reviews Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Finishing up Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Editorial fixes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Final editorial changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Changes relating to PM review Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Incorporating feedback from docs review Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Final changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> Signed-off-by: JeffH-AWS <jeffhuss@amazon.com>
2022-11-23 13:58:00 -05:00
version: '3'
services:
opensearch-node1: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/)
image: opensearchproject/opensearch:latest
container_name: opensearch-node1
environment:
- cluster.name=opensearch-cluster # Name the cluster
- node.name=opensearch-node1 # Name the node that will run in this container
- discovery.seed_hosts=opensearch-node1,opensearch-node2 # Nodes to look for when discovering the cluster
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2 # 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
Adds documentation for security demo configuration setup (#6058) * Adds documentation for security demo configuration setup Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Removes hardcoded version numbers Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Updates distributions for different documentations Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Renames placeholder Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Resolves some vale errors Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Resolves some more vale warnings Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Updates sample docker compose wordings Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Improves wordings Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Changes the demo config page title Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Address PR comments Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Renames admin password placeholder and updates another sentence Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Apply suggestions from code review Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --------- Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Co-authored-by: Nathan Bower <nbower@amazon.com>
2024-02-01 13:00:23 -05:00
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD} # Sets the demo admin user password when using demo configuration (for OpenSearch 2.12 and later)
Adds a quickstart guide (#1739) * Beginning quickstart guide Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Add sample docker compose yaml to assets Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding verbiage about compose commands Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * More additions but saving before a lunch break Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Remove sample compose file from the quickstart guide since it is linked externally Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added first common problem Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Formatting of common issues - oh and I renamed it common issues because problems sounds too negative Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Formatting Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding more content. I love Starbucks White Chocolate Mocha creamer Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Indentation Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added common issue re: docker perms Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Changing the common issues section around a bit so the ordering makes more sense Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Removed blank target from important settings links since we don't do that for other links Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Updates Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Committing changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added newline to docker compose file and started working on steps in the guide Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding steps Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added cURL command for example query Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Reworded intro paragraph and added more steps. Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added tip about using the pretty query parameter Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Editing Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added dashboards content and working on next steps segue Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Wrapping up for the day Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Cleaning up before reviews Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Finishing up Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Editorial fixes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Final editorial changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Changes relating to PM review Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Incorporating feedback from docs review Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Final changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> Signed-off-by: JeffH-AWS <jeffhuss@amazon.com>
2022-11-23 13:58:00 -05:00
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-data1:/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
opensearch-node2:
image: opensearchproject/opensearch:latest # This should be the same image used for opensearch-node1 to avoid issues
container_name: opensearch-node2
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node2
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
Adds documentation for security demo configuration setup (#6058) * Adds documentation for security demo configuration setup Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Removes hardcoded version numbers Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Updates distributions for different documentations Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Renames placeholder Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Resolves some vale errors Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Resolves some more vale warnings Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Updates sample docker compose wordings Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Improves wordings Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Changes the demo config page title Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Address PR comments Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Renames admin password placeholder and updates another sentence Signed-off-by: Darshit Chanpura <dchanp@amazon.com> * Apply suggestions from code review Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --------- Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Co-authored-by: Nathan Bower <nbower@amazon.com>
2024-02-01 13:00:23 -05:00
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}
Adds a quickstart guide (#1739) * Beginning quickstart guide Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Add sample docker compose yaml to assets Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding verbiage about compose commands Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * More additions but saving before a lunch break Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Remove sample compose file from the quickstart guide since it is linked externally Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added first common problem Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Formatting of common issues - oh and I renamed it common issues because problems sounds too negative Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Formatting Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding more content. I love Starbucks White Chocolate Mocha creamer Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Indentation Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added common issue re: docker perms Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Changing the common issues section around a bit so the ordering makes more sense Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Removed blank target from important settings links since we don't do that for other links Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Updates Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Committing changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added newline to docker compose file and started working on steps in the guide Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Adding steps Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added cURL command for example query Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Reworded intro paragraph and added more steps. Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added tip about using the pretty query parameter Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Editing Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Added dashboards content and working on next steps segue Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Wrapping up for the day Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Cleaning up before reviews Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Finishing up Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Editorial fixes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Final editorial changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Changes relating to PM review Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Incorporating feedback from docs review Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> * Final changes Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> Signed-off-by: JeffH-AWS <jeffhuss@amazon.com>
2022-11-23 13:58:00 -05:00
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- opensearch-data2:/usr/share/opensearch/data
networks:
- opensearch-net
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest # Make sure the version of opensearch-dashboards matches the version of opensearch installed on other nodes
container_name: opensearch-dashboards
ports:
- 5601:5601 # Map host port 5601 to container port 5601
expose:
- "5601" # Expose port 5601 for web access to OpenSearch Dashboards
environment:
OPENSEARCH_HOSTS: '["https://opensearch-node1:9200","https://opensearch-node2:9200"]' # Define the OpenSearch nodes that OpenSearch Dashboards will query
networks:
- opensearch-net
volumes:
opensearch-data1:
opensearch-data2:
networks:
opensearch-net: