Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

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

Mir Arif Hasan1fe4685fe9de
diff --git a/docker-compose.deploy.yml b/docker-compose.deploy.yml
index 9659a8cf6..ccf9f93e8 100644
--- a/docker-compose.deploy.yml
+++ b/docker-compose.deploy.yml
@@ -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