Parameterises docker OIDC auth example

This commit is contained in:
Spoffy 2024-07-30 03:05:22 +01:00
parent fc6a32cd1c
commit 460c944184
2 changed files with 11 additions and 8 deletions

View File

@ -0,0 +1,3 @@
DEFAULT_EMAIL=test@example.org
PERSIST_DIR=./persist
SECRETS_DIR=./secrets

View File

@ -1,18 +1,18 @@
secrets:
# These secrets are used by Authelia
JWT_SECRET:
file: ./secrets/JWT_SECRET
file: ${SECRETS_DIR}/JWT_SECRET
SESSION_SECRET:
file: ./secrets/SESSION_SECRET
file: ${SECRETS_DIR}/SESSION_SECRET
STORAGE_ENCRYPTION_KEY:
file: ./secrets/STORAGE_ENCRYPTION_KEY
file: ${SECRETS_DIR}/STORAGE_ENCRYPTION_KEY
# These secrets are for using Authelia as an OIDC provider
HMAC_SECRET:
file: ./secrets/HMAC_SECRET
file: ${SECRETS_DIR}/HMAC_SECRET
JWT_PRIVATE_KEY:
file: ./secrets/certs/private.pem
file: ${SECRETS_DIR}/certs/private.pem
GRIST_CLIENT_SECRET_DIGEST:
file: ./secrets/GRIST_CLIENT_SECRET_DIGEST
file: ${SECRETS_DIR}/GRIST_CLIENT_SECRET_DIGEST
services:
grist:
@ -38,11 +38,11 @@ services:
# Base URL Grist redirects to when navigating. Change this to your domain.
APP_HOME_URL: https://grist.localhost
# Default email for the "Admin" account
GRIST_DEFAULT_EMAIL: test@example.org
GRIST_DEFAULT_EMAIL: ${DEFAULT_EMAIL:-test@example.org}
restart: always
volumes:
# Where to store persistent data, such as documents.
- ./grist_local_data:/persist
- ${PERSIST_DIR}/grist:/persist
labels:
- "traefik.http.services.grist.loadbalancer.server.port=8484"
- "traefik.http.routers.grist.rule=Host(`grist.localhost`)"