Remove docker.dev for docker watch for scanner

This commit is contained in:
Zoe Roux 2025-05-16 19:48:17 +02:00
parent 96037447d2
commit 9ed8f05a52
No known key found for this signature in database
2 changed files with 9 additions and 11 deletions

View File

@ -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

View File

@ -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"]