From 1fe4685fe9decf7e7cb60887beb5e0ef1665101c Mon Sep 17 00:00:00 2001 From: Mir Arif Hasan Date: Wed, 18 Dec 2024 16:03:18 +0600 Subject: [PATCH] build: enable the use of external DB for internal test deployments (#4625) HSB-516 --- docker-compose.deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.deploy.yml b/docker-compose.deploy.yml index 9659a8cf..ccf9f93e 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