From f9bdf7eaebcdb480ec4d6784a140df564b00e682 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 23:52:33 +0000 Subject: [PATCH 1/2] Initial plan From 2c83f0cb9347557f3ea6bdb71d8bca74fc709078 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 23:54:30 +0000 Subject: [PATCH 2/2] Add backend URL configuration documentation Co-authored-by: PeterHindes <19994487+PeterHindes@users.noreply.github.com> --- docs/1_getting_started/installation.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/1_getting_started/installation.md b/docs/1_getting_started/installation.md index 7456d73..b18dcc1 100644 --- a/docs/1_getting_started/installation.md +++ b/docs/1_getting_started/installation.md @@ -59,6 +59,28 @@ To run the base configuration: `docker-compose -f ./docker-compose.yml down` +## Configuration + +### Backend URL + +The frontend backend URL can be configured using the `SYNBIOHUB_BACKEND` environment variable. If not set, it defaults to `http://localhost:7777`. + +To use a custom backend URL, you can set it when starting Docker Compose: + +```bash +SYNBIOHUB_BACKEND=http://your-backend-url:port docker-compose -f ./docker-compose.yml up +``` + +Alternatively, you can create a `.env` file in the same directory as `docker-compose.yml`: + +```bash +cp .env.example .env +# Edit .env and uncomment/set SYNBIOHUB_BACKEND +docker-compose -f ./docker-compose.yml up +``` + +This is particularly useful when deploying SynBioHub2 in production environments where the backend may be hosted on a different server or port. + ## With SBOLExplorer You can also run SynBioHub2 by using SBOLExplorer. To add [SBOLExplorer](https://github.com/michael13162/SBOLExplorer), add the `docker-compose.explorer.yml` to the main Docker Compose file, i.e., for step 5, run the following command: