# User and Group IDs PUID=1000 PGID=100 # Timezone TZ=Etc/UTC # Application URL - set to the base URL where BookStack will be accessed APP_URL=http://localhost:6875 # Application Key - Generate using: # docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey API_KEY=base64:your_generated_app_key_here # Database Configuration DB_DATABASE=bookstack DB_USERNAME=bookstack_user DB_PASSWORD=your_secure_db_password DB_ROOTPASS=your_secure_root_password # Authentication Method (optional, defaults to standard) # Options: standard, saml2 AUTH_METHOD=saml2 AUTH_AUTO_INITIATE=false # SAML2 Configuration (for Authentik or other SAML providers) SAML2_NAME=Authentik SAML2_EMAIL_ATTRIBUTE=email SAML2_EXTERNAL_ID_ATTRIBUTE=sub SAML2_USER_TO_GROUPS=true SAML2_GROUP_ATTRIBUTE=groups SAML2_DISPLAY_NAME_ATTRIBUTES=displayName SAML2_IDP_ENTITYID=https://authentik.yourdomain.com/application/saml/bookstack/sso/binding/ SAML2_AUTOLOAD_METADATA=https://authentik.yourdomain.com/application/saml/bookstack/sso/binding/ # SMTP Configuration (for email notifications) MAIL_DRIVER=smtp MAIL_HOST=smtp.yourdomain.com MAIL_PORT=587 MAIL_ENCRYPTION=tls MAIL_USERNAME=smtp_username MAIL_PASSWORD=smtp_password MAIL_FROM=noreply@yourdomain.com MAIL_FROM_NAME=BookStack