This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
auth.autonomic.zone/compose.yml

45 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2020-05-10 22:04:21 +00:00
---
version: "3.8"
services:
traefik-forward-auth:
image: "thomseddon/traefik-forward-auth:2"
2020-05-10 22:04:21 +00:00
configs:
- source: forward_ini
2020-05-10 22:04:21 +00:00
target: /etc/forward.ini
networks:
- proxy
environment:
- CONFIG=/etc/forward.ini
2020-06-25 10:04:30 +00:00
- OIDC_CLIENT_ID=traefik-forward-auth
- OIDC_ISSUER_URL=https://id.autonomic.zone/auth/realms/autonomic
2020-05-10 22:04:21 +00:00
secrets:
- oidc_client_secret
- secret_nonce
2020-05-10 22:04:21 +00:00
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.services.tfa.loadBalancer.server.port=4181"
- "traefik.http.routers.tfa.rule=Host(`auth.autonomic.zone`)"
2020-05-10 22:04:21 +00:00
- "traefik.http.routers.tfa.entrypoints=web-secure"
- "traefik.http.routers.tfa.tls.certresolver=production"
2020-05-10 22:04:21 +00:00
- "traefik.http.routers.tfa.middlewares=keycloak@file"
networks:
proxy:
external: true
configs:
forward_ini:
name: auth_forward_ini_v1
2020-05-10 22:04:21 +00:00
file: forward.ini.tmpl
template_driver: golang
secrets:
secret_nonce:
name: auth_secret_nonce_v1
2020-05-10 22:04:21 +00:00
external: true
oidc_client_secret:
name: auth_oidc_client_secret_v1
2020-05-10 22:04:21 +00:00
external: true