feat: n8n Authentik OIDC einrichten
This commit is contained in:
parent
75ec90a21c
commit
3147bb8a41
1 changed files with 15 additions and 4 deletions
17
compose.yaml
17
compose.yaml
|
|
@ -1,3 +1,7 @@
|
||||||
|
networks:
|
||||||
|
n8n_network:
|
||||||
|
name: n8n_network
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
|
|
@ -12,6 +16,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /app-config/n8n/db_storage:/var/lib/postgresql/data
|
- /app-config/n8n/db_storage:/var/lib/postgresql/data
|
||||||
- /app-config/n8n/init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
|
- /app-config/n8n/init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
|
||||||
|
networks:
|
||||||
|
- n8n_network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
|
@ -29,13 +35,18 @@ services:
|
||||||
- DB_POSTGRESDB_DATABASE=n8n
|
- DB_POSTGRESDB_DATABASE=n8n
|
||||||
- DB_POSTGRESDB_USER=n8n
|
- DB_POSTGRESDB_USER=n8n
|
||||||
- DB_POSTGRESDB_PASSWORD=n8n
|
- DB_POSTGRESDB_PASSWORD=n8n
|
||||||
- WEBHOOK_URL=http://10.4.1.113:5678/
|
- WEBHOOK_URL=https://n8n.sascha-lutz.de/
|
||||||
|
- N8N_AUTH_OIDC_ENABLED=true
|
||||||
|
- N8N_AUTH_OIDC_ISSUER_URL=https://auth.sascha-lutz.de/application/o/n8n/
|
||||||
|
- N8N_AUTH_OIDC_CLIENT_ID=${N8N_OIDC_CLIENT_ID}
|
||||||
|
- N8N_AUTH_OIDC_CLIENT_SECRET=${N8N_OIDC_CLIENT_SECRET}
|
||||||
|
- N8N_AUTH_OIDC_REDIRECT_URL=https://n8n.sascha-lutz.de/rest/sso/oidc/callback
|
||||||
ports:
|
ports:
|
||||||
- 5678:5678
|
- 5678:5678
|
||||||
links:
|
|
||||||
- postgres
|
|
||||||
volumes:
|
volumes:
|
||||||
- /app-config/n8n/n8n_storage:/home/node/.n8n
|
- /app-config/n8n/n8n_storage:/home/node/.n8n
|
||||||
|
networks:
|
||||||
|
- n8n_network
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
Loading…
Add table
Add a link
Reference in a new issue