mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 13:14:29 -04:00
Remove docker.dev for docker watch for scanner
This commit is contained in:
parent
96037447d2
commit
9ed8f05a52
@ -89,9 +89,7 @@ services:
|
|||||||
- "traefik.http.middlewares.phantom-token.forwardauth.authResponseHeaders=Authorization"
|
- "traefik.http.middlewares.phantom-token.forwardauth.authResponseHeaders=Authorization"
|
||||||
|
|
||||||
scanner:
|
scanner:
|
||||||
build:
|
build: ./scanner
|
||||||
context: ./scanner
|
|
||||||
dockerfile: Dockerfile.dev
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
depends_on:
|
depends_on:
|
||||||
api:
|
api:
|
||||||
@ -109,7 +107,6 @@ services:
|
|||||||
- JWKS_URL=http://auth:4568/.well-known/jwks.json
|
- JWKS_URL=http://auth:4568/.well-known/jwks.json
|
||||||
- JWT_ISSUER=${PUBLIC_URL}
|
- JWT_ISSUER=${PUBLIC_URL}
|
||||||
volumes:
|
volumes:
|
||||||
- ./scanner:/app
|
|
||||||
- ${LIBRARY_ROOT}:/video:ro
|
- ${LIBRARY_ROOT}:/video:ro
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
@ -118,6 +115,14 @@ services:
|
|||||||
- "traefik.http.middlewares.phantom-token.forwardauth.address=http://auth:4568/auth/jwt"
|
- "traefik.http.middlewares.phantom-token.forwardauth.address=http://auth:4568/auth/jwt"
|
||||||
- "traefik.http.middlewares.phantom-token.forwardauth.authRequestHeaders=Authorization,X-Api-Key"
|
- "traefik.http.middlewares.phantom-token.forwardauth.authRequestHeaders=Authorization,X-Api-Key"
|
||||||
- "traefik.http.middlewares.phantom-token.forwardauth.authResponseHeaders=Authorization"
|
- "traefik.http.middlewares.phantom-token.forwardauth.authResponseHeaders=Authorization"
|
||||||
|
command: fastapi dev scanner --host 0.0.0.0 --port 3489
|
||||||
|
develop:
|
||||||
|
watch:
|
||||||
|
- action: sync
|
||||||
|
path: .
|
||||||
|
target: /app
|
||||||
|
- action: rebuild
|
||||||
|
path: ./pyproject.toml
|
||||||
|
|
||||||
transcoder:
|
transcoder:
|
||||||
<<: *transcoder-base
|
<<: *transcoder-base
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
FROM python:3.13
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY ./requirements.txt .
|
|
||||||
RUN pip3 install --no-cache-dir --upgrade -r ./requirements.txt
|
|
||||||
|
|
||||||
CMD ["fastapi", "dev", "scanner", "--host", "0.0.0.0", "--port", "4389"]
|
|
Loading…
x
Reference in New Issue
Block a user