mirror of
https://github.com/unraid/api.git
synced 2026-01-01 14:10:10 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit • New Features - Enhanced the login experience with improved session management and two-factor authentication. - Introduced a comprehensive README for the Unraid Plugin Builder, detailing development workflows and commands. • Chores - Streamlined build, packaging, and deployment processes with updated dependency and environment configurations. - Updated Docker configurations to support pnpm as the package manager. - Added new environment variables for better configuration management. - Introduced new scripts for improved build and packaging processes. • Tests - Removed outdated test cases and simplified test setups. • Refactor - Modernized internal code structure and asynchronous handling for improved overall performance. - Transitioned imports from lodash to lodash-es for better module handling. - Updated environment variable management and configuration settings. - Enhanced the build script for improved deployment processes. - Updated the notification handling structure to improve efficiency. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
54 lines
940 B
YAML
54 lines
940 B
YAML
x-common: &common
|
|
volumes:
|
|
- ./:/app
|
|
- pnpm-store:/pnpm/store
|
|
environment:
|
|
- IS_DOCKER=true
|
|
- GIT_SHA=${GIT_SHA:-unknown}
|
|
- IS_TAGGED=${IS_TAGGED:-false}
|
|
|
|
services:
|
|
|
|
dev:
|
|
image: unraid-api:development
|
|
ports:
|
|
- "3001:3001"
|
|
build:
|
|
context: .
|
|
target: development
|
|
dockerfile: Dockerfile
|
|
<<: *common
|
|
stdin_open: true
|
|
tty: true
|
|
entrypoint: /bin/bash
|
|
profiles:
|
|
- builder
|
|
|
|
local:
|
|
image: unraid-api:development
|
|
ports:
|
|
- "3001:3001"
|
|
build:
|
|
context: .
|
|
target: development
|
|
dockerfile: Dockerfile
|
|
<<: *common
|
|
command: npm run start:dev
|
|
profiles:
|
|
- builder
|
|
|
|
builder:
|
|
image: unraid-api:builder
|
|
build:
|
|
context: .
|
|
target: builder
|
|
dockerfile: Dockerfile
|
|
<<: *common
|
|
profiles:
|
|
- builder
|
|
|
|
volumes:
|
|
pnpm-store:
|
|
name: "pnpm-store"
|
|
pnpm-cache:
|
|
name: "pnpm-cache" |