feat: add labels
This commit is contained in:
@@ -1,9 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
# ---------------------------------
|
|
||||||
# Your reverse-proxy service here:
|
|
||||||
# caddy, traefik, nginx, etc.
|
|
||||||
# ---------------------------------
|
|
||||||
|
|
||||||
voidauth:
|
voidauth:
|
||||||
image: voidauth/voidauth:latest
|
image: voidauth/voidauth:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -12,6 +7,14 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
voidauth-db:
|
voidauth-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
labels:
|
||||||
|
traefik.enable: 'true'
|
||||||
|
traefik.http.routers.voidauth.rule: "Host(`auth.${DOMAIN}`)"
|
||||||
|
traefik.http.routers.voidauth.entryPoints: 'https'
|
||||||
|
traefik.http.routers.voidauth.tls: 'true'
|
||||||
|
traefik.http.middlewares.voidauth.forwardAuth.address: 'http://voidauth:3000/api/authz/forward-auth'
|
||||||
|
traefik.http.middlewares.voidauth.forwardAuth.trustForwardHeader: 'true'
|
||||||
|
traefik.http.middlewares.voidauth.forwardAuth.authResponseHeaders: 'Remote-User,Remote-Name,Remote-Email,Remote-Groups'
|
||||||
|
|
||||||
voidauth-db:
|
voidauth-db:
|
||||||
image: postgres:18
|
image: postgres:18
|
||||||
|
|||||||
Reference in New Issue
Block a user