Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
#!/command/with-contenv sh
# Get verbosity level (0=minimal, 1=normal, 2=verbose)
VERBOSITY="${ALIASVAULT_VERBOSITY:-0}"
# Only show the final message at verbosity level 0 and 1 (not verbose)
if [ "$VERBOSITY" -le 1 ]; then
# Wait for all service ports to be responsive with timeout
READY=false
for i in $(seq 1 180); do # 3 minute timeout
if nc -z 127.0.0.1 3000 && nc -z 127.0.0.1 3001 && nc -z 127.0.0.1 3002 && nc -z 127.0.0.1 80 && nc -z 127.0.0.1 443; then
READY=true
break
fi
if [ $i -eq 180 ]; then
echo "[notification] Warning: Timeout waiting for all services (180s), showing status anyway..."
break
fi
sleep 1
done
# If services are ready, show the message
if [ "$READY" = true ]; then
echo ""
echo "========================================="
echo "π AliasVault is now ready and accessible!"
echo "========================================="
echo ""
echo "π Web Access:"
echo " β’ HTTP: http://localhost:80"
echo " β’ HTTPS: https://localhost:443"
echo " β’ Admin: https://localhost:443/admin"
echo ""
# Check if admin password hash file exists to determine which message to show
if [ -f "${SECRETS_PATH:-/secrets}/admin_password_hash" ]; then
# Admin password hash exists - show the legacy warning
echo "π Admin Login:"
echo " β’ Username: admin"
echo " β’ Password: (previously set - to reset the admin password, login to this container via \`docker exec -it aliasvault /bin/bash\` and run: aliasvault reset-admin-password)"
echo ""
else
# No admin password hash file - show setup instructions
echo "π Admin Setup:"
echo " β’ Admin user is not configured by default"
echo " β’ To configure admin access:"
echo " 1. $ docker exec -it aliasvault /bin/bash"
echo " 2. $ aliasvault reset-admin-password"
echo " 3. $ docker compose restart"
echo ""
fi
echo "π§ Email Ports (if email server enabled):"
echo " β’ SMTP: port 25"
echo " β’ SMTP TLS: port 587"
echo ""
fi
fi
# Sleep forever to keep this as a longrun service
exec sleep infinity