Compare commits
2 Commits
2e159c285b
...
74ea269c3d
| Author | SHA1 | Date | |
|---|---|---|---|
| 74ea269c3d | |||
| 4b350f47f2 |
27
access_management/void/docker-compose.yml
Normal file
27
access_management/void/docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
services:
|
||||||
|
voidauth:
|
||||||
|
image: voidauth/voidauth:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ${CONFIG_ROOT}/voidauth/config:/app/config
|
||||||
|
depends_on:
|
||||||
|
voidauth-db:
|
||||||
|
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:
|
||||||
|
image: postgres:18
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: # required, same as voidauth DB_PASSWORD
|
||||||
|
volumes:
|
||||||
|
- ${CONFIGROOT}/voidauth/db:/var/lib/postgresql/18/docker
|
||||||
|
healthcheck:
|
||||||
|
test: "pg_isready -U postgres -h localhost"
|
||||||
4
access_management/void/example.env
Normal file
4
access_management/void/example.env
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
APP_URL: # required, ex. https://auth.example.com
|
||||||
|
STORAGE_KEY: # required
|
||||||
|
DB_PASSWORD: # required, same as voidauth-db POSTGRES_PASSWORD
|
||||||
|
DB_HOST: voidauth-db # required
|
||||||
Reference in New Issue
Block a user