Created
September 21, 2023 20:10
-
-
Save ulexxander/283e8de216cd203512bb53d6a4644092 to your computer and use it in GitHub Desktop.
OIDC Proxying Docker container using oauth2-proxy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
prometheus-proxy: | |
image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.0 | |
command: | |
- --http-address=:4180 | |
- --upstream=http://prometheus:9090 | |
- --email-domain=* | |
- --oidc-issuer-url=https://gitlab.com | |
- --provider=gitlab | |
- --redirect-url=http://prometheus-oauth.localhost/oauth2/callback | |
# Env file contents: | |
# OAUTH2_PROXY_CLIENT_ID=... | |
# OAUTH2_PROXY_CLIENT_SECRET=... | |
# OAUTH2_PROXY_COOKIE_SECRET=... | |
env_file: prometheus-proxy.env | |
expose: | |
- 4180 | |
restart: always | |
labels: | |
- traefik.enable=true | |
- traefik.http.routers.prometheus-oauth.rule=Host(`prometheus-oauth.localhost`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment