Commit 3386069b authored by Yan Grange's avatar Yan Grange 👋
Browse files

Making root path configurable

parent 0cd00b41
Pipeline #16024 passed with stages
in 2 minutes and 16 seconds
......@@ -24,6 +24,10 @@ PGADMIN_DEFAULT_EMAIL=pgadmin@pgadmin.org
PGADMIN_DEFAULT_PASSWORD=admin
TRAEFIK_PUBLIC_NETWORK_IS_EXTERNAL=false
```
If you run esap-db behind a reverse proxy, you can also configue a root path by adding:
```
ROOTPATH=/esap-db
```
To check that ESAP-DB is working locally:
......
......@@ -30,7 +30,7 @@ services:
context: ..
args:
INSTALL_DEV: ${INSTALL_DEV:-false}
command: bash -c "/code/scripts/prepare-app.sh && uvicorn app.main:app --root-path=/esap-db --port 8001 --host 0.0.0.0 --reload"
command: bash -c "/code/scripts/prepare-app.sh && uvicorn app.main:app --root-path=${ROOTPATH:-/} --port 8001 --host 0.0.0.0 --reload"
ports:
- "8001:8001"
depends_on:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment