mirror of
https://github.com/unraid/api.git
synced 2026-01-07 00:59:48 -06:00
feat: local start command
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[api]
|
||||
version="3.2.3+4a6dbc19"
|
||||
version="3.2.3+5a94a72a"
|
||||
extraOrigins=""
|
||||
[local]
|
||||
[notifier]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[api]
|
||||
version="3.2.3+4a6dbc19"
|
||||
version="3.2.3+5a94a72a"
|
||||
extraOrigins=""
|
||||
[local]
|
||||
[notifier]
|
||||
|
||||
@@ -50,6 +50,24 @@ services:
|
||||
profiles:
|
||||
- builder
|
||||
|
||||
local:
|
||||
networks:
|
||||
- mothership_default
|
||||
image: unraid-api:development
|
||||
ports:
|
||||
- "3001:3001"
|
||||
build:
|
||||
context: .
|
||||
target: development
|
||||
dockerfile: Dockerfile
|
||||
<<: *volumes
|
||||
command: npm run start:dev
|
||||
environment:
|
||||
- IS_DOCKER=true
|
||||
- GIT_SHA=${GIT_SHA:?err}
|
||||
- IS_TAGGED=${IS_TAGGED}
|
||||
profiles:
|
||||
- builder
|
||||
|
||||
builder:
|
||||
image: unraid-api:builder
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
"start:report": "LOG_MOTHERSHIP_MESSAGES=true LOG_TYPE=pretty NODE_ENV=development LOG_LEVEL=trace NODE_ENV=development LOG_CONTEXT=true tsup --config ./tsup.config.ts --watch --onSuccess 'DOTENV_CONFIG_PATH=./.env.development node -r dotenv/config dist/unraid-api.cjs report --debug'",
|
||||
"start:docker": "docker compose run --rm builder-interactive",
|
||||
"build:dev": "./scripts/dc.sh build dev",
|
||||
"start:local": "./scripts/dc.sh run --rm --service-ports local",
|
||||
"docker:dev": "./scripts/dc.sh run --rm --service-ports dev",
|
||||
"docker:test": "./scripts/dc.sh run --rm builder npm run test"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user