Skip to content

Commit

Permalink
Add profiles
Browse files Browse the repository at this point in the history
- "dev" replaces the old behaviour
- other profile names replace the files in the other subdirectories
- start with `docker compose --profile <NAME> up`
  • Loading branch information
surchs committed Apr 5, 2024
1 parent c94bf0b commit af42e5f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ services:

api:
image: "neurobagel/api:${NB_NAPI_TAG:-latest}"
profiles:
- "local_node"
- "local_node_query"
- "dev"
ports:
- "${NB_NAPI_PORT_HOST:-8000}:${NB_NAPI_PORT:-8000}"
environment:
Expand All @@ -18,6 +22,10 @@ services:

graph:
image: "${NB_GRAPH_IMG:-ontotext/graphdb:10.3.1}"
profiles:
- "local_node"
- "local_node_query"
- "dev"
volumes:
- "${NB_GRAPH_ROOT_HOST:-~/graphdb-home}:${NB_GRAPH_ROOT_CONT:-/opt/graphdb/home}"
- "${PWD}:/usr/src"
Expand All @@ -29,17 +37,22 @@ services:

federation:
image: "neurobagel/federation_api:${NB_FAPI_TAG:-latest}"
profiles:
- "local_federation"
- "dev"
ports:
- "${NB_FAPI_PORT_HOST:-8080}:${NB_FAPI_PORT:-8000}"
volumes:
- "${PWD}/local_nb_nodes.json:/usr/src/local_nb_nodes.json:ro"
environment:
NB_API_PORT: ${NB_FAPI_PORT:-8000}
extra_hosts:
- "host.docker.internal:host-gateway"

query:
image: "neurobagel/query_tool:${NB_QUERY_TAG:-latest}"
profiles:
- "local_federation"
- "local_node_query"
- "dev"
ports:
- "${NB_QUERY_PORT_HOST:-3000}:5173"
environment:
Expand Down

0 comments on commit af42e5f

Please sign in to comment.