From f81c8bc8b787097b064cfc3f37172fc2bffee7a1 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 12 Apr 2024 21:26:00 +0000 Subject: [PATCH] add hostname to vaultwarden compose --- services-available/vaultwarden.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services-available/vaultwarden.yml b/services-available/vaultwarden.yml index 3863523f..5dc28b82 100644 --- a/services-available/vaultwarden.yml +++ b/services-available/vaultwarden.yml @@ -21,11 +21,10 @@ services: - PUID=${PUID:-1000} - PGID=${PGID:-1000} - TZ=${TZ} - - DOMAIN=${VAULTWARDEN_CONTAINER_NAME:-vaultwarden}.${HOST_DOMAIN} # docker run --rm -it vaultwarden/server /vaultwarden hash --preset owasp - ADMIN_TOKEN=${VAULTWARDEN_ADMIN_TOKEN} - SIGNUPS_ALLOWED=${VAULTWARDEN_SIGNUPS_ALLOWED:-true} - - DOMAIN=https://${VAULTWARDEN_CONTAINER_NAME:-vaultwarden}.${HOST_DOMAIN} + - DOMAIN=https://${VAULTWARDEN_HOSTNAME:-vaultwarden}.${HOST_DOMAIN} - SMTP_HOST=${VAULTWARDEN_SMTP_HOST:-smtp.domain.tld} - SMTP_FROM=${VAULTWARDEN_SMTP_FROM:-vaultwarden@domain.tld} - SMTP_FROM_NAME=${VAULTWARDEN_SMTP_FROM_NAME:-Vaultwarden} @@ -36,10 +35,10 @@ services: - SMTP_TIMEOUT=15 labels: - - joyride.host.name=${VAULTWARDEN_CONTAINER_NAME:-vaultwarden}.${HOST_DOMAIN} + - joyride.host.name=${VAULTWARDEN_HOSTNAME:-vaultwarden}.${HOST_DOMAIN} - traefik.enable=true - traefik.http.routers.vaultwarden.entrypoints=websecure - - traefik.http.routers.vaultwarden.rule=Host(`${VAULTWARDEN_CONTAINER_NAME:-vaultwarden}.${HOST_DOMAIN}`) + - traefik.http.routers.vaultwarden.rule=Host(`${VAULTWARDEN_HOSTNAME:-vaultwarden}.${HOST_DOMAIN}`) - traefik.http.services.vaultwarden.loadbalancer.server.port=80 - com.centurylinklabs.watchtower.enable=true - autoheal=true