mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -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"
|
||||
|
||||
scanner:
|
||||
build:
|
||||
context: ./scanner
|
||||
dockerfile: Dockerfile.dev
|
||||
build: ./scanner
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
api:
|
||||
@ -109,7 +107,6 @@ services:
|
||||
- JWKS_URL=http://auth:4568/.well-known/jwks.json
|
||||
- JWT_ISSUER=${PUBLIC_URL}
|
||||
volumes:
|
||||
- ./scanner:/app
|
||||
- ${LIBRARY_ROOT}:/video:ro
|
||||
labels:
|
||||
- "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.authRequestHeaders=Authorization,X-Api-Key"
|
||||
- "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-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