diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index b587610f..1450533e 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -16,6 +16,13 @@ x-transcoder: &transcoder-base - ${LIBRARY_ROOT}:/video:ro - ${CACHE_ROOT}:/cache - transcoder_metadata:/metadata + labels: + - "traefik.enable=true" + - "traefik.http.routers.transcoder.rule=PathPrefix(`/video`)" + - "traefik.http.routers.transcoder.middlewares=phantom-token" + - "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" develop: watch: - action: sync+restart