Skip to content

Commit

Permalink
build: Add build-ci, update example docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
redmushie committed Oct 1, 2023
1 parent dd6c390 commit cbe8b03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
# Check https://github.com/OpenShock/API for the latest configuration settings.
api:
image: ghcr.io/openshock/api:latest
container_name: api
depends_on:
- db
- redis
Expand All @@ -32,13 +33,15 @@ services:

# The Web UI (this repository).
webui:
image: ghcr.io/openshock/webui:master
#image: ghcr.io/openshock/webui:master
build: .
container_name: webui
depends_on:
- api
ports:
- "5002:80/tcp"
environment:
- OPENSHOCK_NAME=LocalShock
- OPENSHOCK_URL=http://local:5002
- OPENSHOCK_API_URL=http://api:80
- OPENSHOCK_URL=http://webui.localhost:5002
- OPENSHOCK_API_URL=http://api.localhost:80
- OPENSHOCK_SHARE_URL=http://local:5002/#/public/proxy/shares/links/
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"build": "webpack",
"build-ci": "webpack --mode production --env TARGET_ENV=container",
"local": "webpack-dev-server --mode development --env TARGET_ENV=local --https",
"dev": "webpack-dev-server --mode development --env TARGET_ENV=development --https"
},
Expand Down

0 comments on commit cbe8b03

Please sign in to comment.