Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Simplify the networking/docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
chouinar committed May 17, 2024
1 parent 2126171 commit 8f80852
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions api/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ services:
ports:
- 9200:9200 # REST API
- 9600:9600 # Performance Analyzer
networks:
- opensearch-net # All of the containers will join the same Docker bridge network

opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest
Expand All @@ -48,8 +46,6 @@ services:
environment:
- 'OPENSEARCH_HOSTS=["http://opensearch-node:9200"]'
- DISABLE_SECURITY_DASHBOARDS_PLUGIN=true # disables security dashboards plugin in OpenSearch Dashboards
networks:
- opensearch-net

grants-api:
build:
Expand All @@ -68,12 +64,7 @@ services:
depends_on:
- grants-db
- opensearch-node
extra_hosts:
- "host.docker.internal:host-gateway"

volumes:
grantsdbdata:
opensearch-data:

networks:
opensearch-net:
2 changes: 1 addition & 1 deletion api/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ HIDE_SQL_PARAMETER_LOGS=TRUE
# Opensearch Environment Variables
############################

OPENSEARCH_HOST=host.docker.internal
OPENSEARCH_HOST=opensearch-node
OPENSEARCH_PORT=9200
OPENSEARCH_USE_SSL=FALSE
OPENSEARCH_VERIFY_CERTS=FALSE
Expand Down

0 comments on commit 8f80852

Please sign in to comment.