neurobagel-recipes/scripts/api_entrypoint.sh
Alyssa Dai 9626dc17bf
[MNT] Use docker compose secrets for sensitive credentials (#50)
* update graph and API entrypoints to fetch secrets

* mention local_federation profile in README
2024-04-25 13:42:39 -04:00

5 lines
156 B
Bash
Executable file

#!/bin/bash
export NB_GRAPH_PASSWORD=$(cat /run/secrets/db_user_password)
uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port ${NB_API_PORT:-8000}