build: enable the use of external DB for internal test deployments (#4625)
HSB-516
This commit is contained in:
parent
bd22c8c1a9
commit
1fe4685fe9
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,9 @@ services:
|
|||
context: .
|
||||
target: aio
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch
|
||||
# DATABASE_URL is read from the .env file to allow the backend to connect with an external database.
|
||||
# This allows the backend to retain existing data and prevents database resets during deployments.
|
||||
# DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch
|
||||
- ENABLE_SUBPATH_BASED_ACCESS=true
|
||||
env_file:
|
||||
- ./.env
|
||||
|
|
|
|||
Loading…
Reference in a new issue