mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
75 lines
1.7 KiB
YAML
75 lines
1.7 KiB
YAML
version: '3.8'
|
|
|
|
x-volumes: &volumes
|
|
volumes:
|
|
- ./dev:/app/dev
|
|
- ./src:/app/src
|
|
- ./package.json:/app/package.json
|
|
- ./package-lock.json:/app/package-lock.json
|
|
- ./tsconfig.json:/app/tsconfig.json
|
|
- ./vite.config.ts:/app/vite.config.ts
|
|
- ./dist/:/app/dist/
|
|
- ./deploy/:/app/deploy/
|
|
- ./README.md:/app/README.md
|
|
- ./scripts/:/app/scripts/
|
|
- ../.git/:/app/.git/
|
|
- ./.env.production:/app/.env.production
|
|
- ./.env.staging:/app/.env.staging
|
|
- ./.env.test:/app/.env.test
|
|
- ./.env.development:/app/.env.development
|
|
- ./codegen.ts:/app/codegen.ts
|
|
- ./fix-array-type.cjs:/app/fix-array-type.cjs
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./unraid-api.js:/app/unraid-api.js
|
|
- ./ecosystem.config.json:/app/ecosystem.config.json
|
|
|
|
services:
|
|
|
|
dev:
|
|
image: unraid-api:development
|
|
ports:
|
|
- "3001:3001"
|
|
build:
|
|
context: .
|
|
target: development
|
|
dockerfile: Dockerfile
|
|
<<: *volumes
|
|
stdin_open: true
|
|
tty: true
|
|
entrypoint: /bin/bash
|
|
environment:
|
|
- IS_DOCKER=true
|
|
- GIT_SHA=${GIT_SHA:?err}
|
|
- IS_TAGGED=${IS_TAGGED}
|
|
profiles:
|
|
- builder
|
|
|
|
local:
|
|
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
|
|
environment:
|
|
- GIT_SHA=${GIT_SHA:?err}
|
|
- IS_TAGGED=${IS_TAGGED}
|
|
build:
|
|
context: .
|
|
target: builder
|
|
dockerfile: Dockerfile
|
|
<<: *volumes
|
|
profiles:
|
|
- builder |