Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SynBioHub Frontend Backend URL Configuration
# Uncomment and set this variable to override the default backend URL
# Default: http://localhost:7777
#SYNBIOHUB_BACKEND=http://localhost:7777
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.env
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ To run the base configuration:
2. `git clone -b snapshot https://github.com/synbiohub/synbiohub2-docker`
3. `docker-compose -f ./synbiohub2-docker/docker-compose.yml up`

### 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:
```bash
SYNBIOHUB_BACKEND=http://your-backend-url:port docker-compose -f ./synbiohub2-docker/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 ./synbiohub2-docker/docker-compose.yml up
```

### With Explorer
To add [SBOLExplorer](https://github.com/michael13162/SBOLExplorer), add the `docker-compose.explorer.yml` to the main docker-compose, i.e. for step 3 run `docker-compose -f ./synbiohub2-docker/docker-compose.yml -f ./synbiohub2-docker/docker-compose.explorer.yml up`

Expand Down
1 change: 0 additions & 1 deletion docker-compose.explorer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ services:
- elasticsearch
- synbiohub
- synbiohubFrontend
dns: 8.8.8.8
volumes:
- type: volume
source: explorer
Expand Down
1 change: 0 additions & 1 deletion docker-compose.pluginDownloadTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ services:
image: synbiohub/plugin-download-test:snapshot
ports:
- "8089:5000"
dns: 8.8.8.8
restart: always
1 change: 0 additions & 1 deletion docker-compose.pluginDownloadTestJs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ services:
image: synbiohub/plugin-download-test-js:snapshot
ports:
- "8090:5000"
dns: 8.8.8.8
restart: always
1 change: 0 additions & 1 deletion docker-compose.pluginSubmitExcel2SBOL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ services:
image: synbiohub/plugin-submit-excel2sbol:snapshot
ports:
- "8098:5000"
dns: 8.8.8.8
restart: always
1 change: 0 additions & 1 deletion docker-compose.pluginSubmitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ services:
image: synbiohub/plugin-submit-test:snapshot
ports:
- "8087:5000"
dns: 8.8.8.8
restart: always
1 change: 0 additions & 1 deletion docker-compose.pluginSubmitTestJs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ services:
image: synbiohub/plugin-submit-test-js:snapshot
ports:
- "8091:5000"
dns: 8.8.8.8
restart: always
2 changes: 0 additions & 2 deletions docker-compose.pluginVisualSeqviz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ services:
- "8085:5050"
environment:
- SEQVIZ_HOST=http://localhost:8085/
dns:
- 8.8.8.8
restart: always
1 change: 0 additions & 1 deletion docker-compose.pluginVisualServeTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ services:
- "8088:5000"
environment:
- SERVER_HOST=http://localhost:8088/
dns: 8.8.8.8
restart: always
1 change: 0 additions & 1 deletion docker-compose.pluginVisualServeTestJs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ services:
environment:
- SERVER_HOST=http://localhost:8086/
restart: always
dns: 8.8.8.8
1 change: 0 additions & 1 deletion docker-compose.pluginVisualTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ services:
ports:
- "8081:5000"
restart: always
dns: 8.8.8.8
1 change: 0 additions & 1 deletion docker-compose.pluginVisualTestJs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ services:
image: synbiohub/plugin-visual-test-js:snapshot
ports:
- "8082:5000"
dns: 8.8.8.8
restart: always
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ services:
image: synbiohub/sbh3frontend:snapshot
ports:
- "3333:3333"
dns: 8.8.8.8
restart: always
environment:
- backend=http://localhost:7777
- backend=${SYNBIOHUB_BACKEND:-http://localhost:7777}
- backendSS=http://synbiohub:7777
synbiohub:
image: synbiohub/synbiohub:snapshot-standalone
Expand All @@ -46,7 +45,6 @@ services:
- type: volume
source: virtuoso-db1
target: /virtuoso
dns: 8.8.8.8
restart: always

volumes:
Expand Down