-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (40 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
46 lines (40 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# =============================================================================
# NeuroPoly DB — Root Compose
# Layers: root .env → recipes compose → root service overrides
# =============================================================================
include:
- ./neurobagel-recipes/docker-compose.yml
services:
# Override federation volumes: root-level mount for local_nb_nodes.json
# (recipes compose tries to mount from recipes/ which doesn't have the file)
federation:
volumes: !override
- ./local_nb_nodes.json:/usr/src/local_nb_nodes.json:ro
# Seed datasets from workspace directory at devcontainer build time
init_data:
volumes: !override
- ./seed-datasets:/input_data:ro
- neurobagel_data:/data
# Don't publish query_federation directly; the proxy serves it.
query_federation:
ports: !override []
# Inject custom imaging vocab into the NeuroBagel API at startup.
# !override replaces the upstream api.volumes list entirely to avoid
# duplicate container mount paths.
api:
volumes: !override
- "./scripts/neuropoly_api_entrypoint.sh:/usr/src/api_entrypoint.sh:ro"
- "./scripts/inject_vocab_patch.py:/usr/src/neurobagel/inject_vocab_patch.py:ro"
- "./config/neuropoly_imaging_modalities.json:/usr/src/neurobagel/neuropoly_imaging_modalities.json:ro"
- "neurobagel_data:/data"
# Dev reverse proxy — single port for both query UI and federation API.
# This lets VS Code SSH forward a single port to reach everything.
proxy:
image: nginx:alpine
ports:
- "${NB_PROXY_PORT_HOST:-9000}:80"
volumes:
- ./config/nginx/dev-proxy.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- federation
- query_federation