build: enable the use of external DB for internal test deployments (#4625)

HSB-516
This commit is contained in:
Mir Arif Hasan 2024-12-18 16:03:18 +06:00 committed by GitHub
parent bd22c8c1a9
commit 1fe4685fe9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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