Skip to content

Commit

Permalink
Use Docker service name for local node
Browse files Browse the repository at this point in the history
  • Loading branch information
surchs committed Apr 5, 2024
1 parent 95db818 commit c94bf0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: "3.8"

services:

api:
image: "neurobagel/api:${NB_NAPI_TAG:-latest}"
ports:
Expand All @@ -14,6 +15,7 @@ services:
NB_RETURN_AGG: ${NB_RETURN_AGG:-true}
NB_API_PORT: ${NB_NAPI_PORT:-8000}
NB_API_ALLOWED_ORIGINS: ${NB_NAPI_ALLOWED_ORIGINS}

graph:
image: "${NB_GRAPH_IMG:-ontotext/graphdb:10.3.1}"
volumes:
Expand All @@ -24,6 +26,7 @@ services:
entrypoint:
- "/usr/src/setup.sh"
working_dir: "/usr/src"

federation:
image: "neurobagel/federation_api:${NB_FAPI_TAG:-latest}"
ports:
Expand All @@ -34,6 +37,7 @@ services:
NB_API_PORT: ${NB_FAPI_PORT:-8000}
extra_hosts:
- "host.docker.internal:host-gateway"

query:
image: "neurobagel/query_tool:${NB_QUERY_TAG:-latest}"
ports:
Expand Down
6 changes: 1 addition & 5 deletions dev/local_nb_nodes.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[
{
"NodeName": "Local graph 1",
"ApiURL": "http://host.docker.internal:8000"
},
{
"NodeName": "Local graph 2",
"ApiURL": "http://192.168.0.1"
"ApiURL": "http://api:8000"
}
]

0 comments on commit c94bf0b

Please sign in to comment.