# The name you will open the vault at. In the lab it only resolves inside the Compose network. # For a real deployment set your own domain (its DNS record must point at this host). DOMAIN=vault.example.com # ADMIN PAGE: OFF until you set your own hash. The lab's hash is not published: the password behind it is public, so anyone # who kept it would have an admin page that anyone can log in to. A placeholder would not be safe either, because Vaultwarden # takes any text that is not an Argon2 hash as a plain-text admin password. Until you set a hash, docker compose prints # 'The "VAULTWARDEN_ADMIN_TOKEN" variable is not set. Defaulting to a blank string.' on every command: that is expected. # To turn the admin page on: # 1. Generate your own hash (it asks for the password twice and needs a terminal): # docker run --rm -it vaultwarden/server:1.37.3 /vaultwarden hash # 2. Replace the line below with VAULTWARDEN_ADMIN_TOKEN= followed by the hash, keeping its single quotes. The command prints # ADMIN_TOKEN='$argon2id$...': copy only the part after the = sign. # 3. Run docker compose up -d. To turn the page off again, comment the line out again. # VAULTWARDEN_ADMIN_TOKEN=