Try to fix Docker secrets to be optional.

Thanks to xet7 !

Fixes #5920
This commit is contained in:
Lauri Ojansivu 2025-10-14 11:54:09 +03:00
parent ef54ebada6
commit 06a5a8f70d

View file

@ -734,12 +734,13 @@ services:
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- wekan-files:/data:rw - wekan-files:/data:rw
secrets: # Secrets are optional. Uncomment below and ensure files exist to use them.
- ldap_auth_password #secrets:
- oauth2_secret # - ldap_auth_password
- mail_service_password # - oauth2_secret
- mongo_password # - mail_service_password
- s3_secret # - mongo_password
# - s3_secret
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ==== # ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ====
@ -806,14 +807,15 @@ networks:
# Create secret files on the host system before running docker-compose up # Create secret files on the host system before running docker-compose up
# Example: echo "your_password_here" > ldap_auth_password.txt # Example: echo "your_password_here" > ldap_auth_password.txt
# Then use: docker-compose up -d # Then use: docker-compose up -d
secrets: # Secrets are optional. Uncomment to enable and ensure files exist at provided paths.
ldap_auth_password: #secrets:
file: ./secrets/ldap_auth_password.txt # ldap_auth_password:
oauth2_secret: # file: ./secrets/ldap_auth_password.txt
file: ./secrets/oauth2_secret.txt # oauth2_secret:
mail_service_password: # file: ./secrets/oauth2_secret.txt
file: ./secrets/mail_service_password.txt # mail_service_password:
mongo_password: # file: ./secrets/mail_service_password.txt
file: ./secrets/mongo_password.txt # mongo_password:
s3_secret: # file: ./secrets/mongo_password.txt
file: ./secrets/s3_secret.txt # s3_secret:
# file: ./secrets/s3_secret.txt