Skip to content

Commit

Permalink
Merge pull request #106 from samply/feature/enableLogging
Browse files Browse the repository at this point in the history
feat: enable logging in spot
  • Loading branch information
torbrenner authored Jun 20, 2024
2 parents f46a400 + 7a41ffd commit d2d358e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: '3.8'
# TODO: BBMRI expects Traefik to already exist

volumes:
request-log:

services:
traefik:
image: traefik:latest
Expand Down Expand Up @@ -36,10 +40,13 @@ services:
# For some reason, login.verbis.dkfz.de does not have a "groups" scope but this comes automatically through a
# scope called microprofile-jwt. Remove the following line once we have a "groups" scope.
- OAUTH2_PROXY_SCOPE=openid profile email
# Pass Authorization Header and some user information to spot
- OAUTH2_PROXY_SET_AUTHORIZATION_HEADER=true
- OAUTH2_PROXY_SET_XAUTHREQUEST=true
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.traefik-forward-auth.forwardauth.address=http://traefik-forward-auth:4180"
- "traefik.http.middlewares.traefik-forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
- "traefik.http.middlewares.traefik-forward-auth.forwardauth.authResponseHeaders=Authorization, X-Forwarded-User, X-Auth-Request-User, X-Auth-Request-Email"
- "traefik.http.services.traefik-forward-auth.loadbalancer.server.port=4180"
- "traefik.http.routers.oauth2.rule=Host(`${GUI_HOST}`) && PathPrefix(`/oauth2/`)"
- "traefik.http.routers.oauth2.tls=true"
Expand Down Expand Up @@ -68,6 +75,11 @@ services:
CATALOGUE_URL: "${CATALOGUE_URL}"
BIND_ADDR: 0.0.0.0:8055
PRISM_URL: http://prism:8066
RUST_LOG: "info"
LOG_FILE: "/requests.log"
volumes:
- request-log:/requests.log

depends_on:
- "beam-proxy"
labels:
Expand Down

0 comments on commit d2d358e

Please sign in to comment.