mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-04-24 05:33:36 +00:00
chore: comment traefik labels + add port declaration
This commit is contained in:
parent
b1f4ca3a28
commit
3d3e507b79
@ -54,6 +54,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/media:/media
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/media:/media
|
||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/custom-templates:/templates
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authentik/custom-templates:/templates
|
||||||
|
ports:
|
||||||
|
- 9000
|
||||||
expose:
|
expose:
|
||||||
- 9000
|
- 9000
|
||||||
- 9443
|
- 9443
|
||||||
@ -65,14 +67,14 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- authentik-internal
|
- authentik-internal
|
||||||
labels:
|
#labels:
|
||||||
- traefik.enable=true
|
# - traefik.enable=true
|
||||||
- traefik.http.routers.authentik.rule=Host(`authentik.example.com`) || HostRegexp(`{subdomain:[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?}.example.com`) && PathPrefix(`/outpost.goauthentik.io/`)
|
# - traefik.http.routers.authentik.rule=Host(`authentik.example.com`) || HostRegexp(`{subdomain:[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?}.example.com`) && PathPrefix(`/outpost.goauthentik.io/`)
|
||||||
- traefik.http.services.authentik.loadbalancer.server.port=9000
|
# - traefik.http.services.authentik.loadbalancer.server.port=9000
|
||||||
- traefik.docker.network=proxy
|
# - traefik.docker.network=proxy
|
||||||
- traefik.http.middlewares.authentik.forwardauth.address=http://authentik-proxy:9000/outpost.goauthentik.io/auth/traefik
|
# - traefik.http.middlewares.authentik.forwardauth.address=http://authentik-proxy:9000/outpost.goauthentik.io/auth/traefik
|
||||||
- traefik.http.middlewares.authentik.forwardauth.trustForwardHeader=true
|
# - traefik.http.middlewares.authentik.forwardauth.trustForwardHeader=true
|
||||||
- traefik.http.middlewares.authentik.forwardauth.authResponseHeaders=X-authentik-username,X-authentik-groups,X-authentik-email,X-authentik-name,X-authentik-uid,X-authentik-jwt,X-authentik-meta-jwks,X-authentik-meta-outpost,X-authentik-meta-provider,X-authentik-meta-app,X-authentik-meta-version
|
# - traefik.http.middlewares.authentik.forwardauth.authResponseHeaders=X-authentik-username,X-authentik-groups,X-authentik-email,X-authentik-name,X-authentik-uid,X-authentik-jwt,X-authentik-meta-jwks,X-authentik-meta-outpost,X-authentik-meta-provider,X-authentik-meta-app,X-authentik-meta-version
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: ghcr.io/goauthentik/server:${AUTHENTIK_VERSION:-2024.8}
|
image: ghcr.io/goauthentik/server:${AUTHENTIK_VERSION:-2024.8}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user