Skip to content

Commit

Permalink
Merge pull request #114 from derek-ho/admin
Browse files Browse the repository at this point in the history
Update docker for default admin creds update
  • Loading branch information
derek-ho authored Feb 6, 2024
2 parents 239f153 + a65db4c commit bc493fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ PROMETHEUS_ADDR=${PROMETHEUS_SERVICE_HOST}:${PROMETHEUS_SERVICE_PORT}

# OpenSearch versionins
OPENSEARCH_VERSION=2.11.1
OPENSEARCH_ADMIN_PASSWORD=admin # After 2.12.0 release, this needs to be changed to the value passed in as OPENSEARCH_INITIAL_ADMIN_PASSWORD

# OpenSearch Node1
OPENSEARCH_PORT=9200
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ services:
- SPAN_STORAGE_TYPE=opensearch
- ES_TAGS_AS_FIELDS_ALL=true
- ES_USERNAME=admin
- ES_PASSWORD=admin
- ES_PASSWORD=${OPENSEARCH_ADMIN_PASSWORD}
- ES_TLS_SKIP_HOST_VERIFY=true
logging: *logging
depends_on:
Expand Down Expand Up @@ -770,6 +770,7 @@ services:
networks:
- opensearch-otel-demo


opensearch-node1:
image: opensearchproject/opensearch:latest
container_name: opensearch-node1
Expand All @@ -780,6 +781,7 @@ services:
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_ADMIN_PASSWORD}"
ulimits:
memlock:
soft: -1
Expand All @@ -805,6 +807,7 @@ services:
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_ADMIN_PASSWORD}"
ulimits:
memlock:
soft: -1
Expand Down

0 comments on commit bc493fd

Please sign in to comment.