add secret version suffix and add secret decleration to compose.yml

This commit is contained in:
brooke 2025-01-07 20:07:50 -06:00
parent b805e0aee4
commit 35fb8ff2a3
3 changed files with 13 additions and 1 deletions

View File

@ -5,6 +5,10 @@ DOMAIN=wireguard-ui.example.com
#EXTRA_DOMAINS=', `www.wireguard-ui.example.com`'
LETS_ENCRYPT_ENV=production
SECRET_SESSION_VERSION=v1
SECRET_ADMIN_PASSWORD_VERSION=v1
SECRET_SMTP_PASSWORD_VERSION=v1
##
## Please check https://github.com/ngoduykhanh/wireguard-ui for up-to-date information regarding default values and environment variables

View File

@ -16,4 +16,4 @@ services:
secrets:
smtp_password:
external: true
name: ${STACK_NAME}_smtp_password
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}

View File

@ -53,6 +53,14 @@ networks:
proxy:
external: true
secrets:
session_secret:
external: true
name: ${STACK_NAME}_session_secret_${SECRET_SESSION_VERSION}
admin_password:
external: true
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
volumes:
wgconfig:
wguiconfig: