Skip to content

Commit d982081

Browse files
authored
Merge pull request #1371 from chhsiao1981/docker-compose
add docker-compose
2 parents 85d86d3 + d15c931 commit d982081

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
/docker_compose.env
78

89
# testing
910
/coverage

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,19 @@ pnpm install
2020
pnpm run dev:public
2121
```
2222

23+
### docker-compose
24+
25+
1. setup `docker_compose.env` based on [docker_compose.env.tmpl](https://github.com/FNNDSC/ChRIS_ui/blob/branch-7.0/docker_compose.env.tmpl)
26+
2. `docker compose --env-file docker_compose.env -f docker-compose.yaml up -d`
27+
28+
2329
## Development
2430

2531
There are two modes of development:
2632

2733
- "local": runs the _ChRIS_ backend locally. Requires Docker, and uses more disk space + slower startup time.
2834
- "public": use the global, public testing server. This is the easier option, especially for non-Linux OS.
29-
35+
3036
<details>
3137
<summary>
3238
<strong>

docker-compose.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: chris-ui
2+
3+
services:
4+
chris-ui:
5+
image: ghcr.io/fnndsc/chris_ui:branch-7.0
6+
ports:
7+
- "127.0.0.1:5173:8080"
8+
restart: always
9+
env:
10+
CHRIS_UI_URL: ${CHRIS_UI_URL}
11+
PFDCM_URL: ${PFDCM_URL}
12+
SERVER_HEALTH: true
13+
SERVER_PORT: 8080

docker_compose.env.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CHRIS_UI_URL=
2+
PFDCM_URL=

0 commit comments

Comments
 (0)