Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ASTRON SDC
ESCAPE WP5
ESAP DB
Commits
3386069b
Commit
3386069b
authored
Aug 04, 2021
by
Yan Grange
👋
Browse files
Making root path configurable
parent
0cd00b41
Pipeline
#16024
passed with stages
in 2 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3386069b
...
...
@@ -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:
...
...
host-files/docker-compose.yml
View file @
3386069b
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment