Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update container startup logging (#1098)

Leendert de Borst9c8462f9ce89
diff --git a/dockerfiles/s6-scripts/admin/run b/dockerfiles/s6-scripts/admin/run
index d6eac79b8..0fb29c8ad 100644
--- a/dockerfiles/s6-scripts/admin/run
+++ b/dockerfiles/s6-scripts/admin/run
@@ -44,8 +44,6 @@ else
export Logging__LogLevel__Microsoft="Error"
fi
-if [ "$VERBOSITY" -ge 1 ]; then
- echo "[admin] Starting Admin service..."
-fi
+echo "Starting Admin service..."
exec dotnet AliasVault.Admin.dll
\ No newline at end of file
diff --git a/dockerfiles/s6-scripts/api/run b/dockerfiles/s6-scripts/api/run
index c3abec47b..2dd07b003 100644
--- a/dockerfiles/s6-scripts/api/run
+++ b/dockerfiles/s6-scripts/api/run
@@ -46,8 +46,6 @@ else
export Logging__LogLevel__Microsoft="Error"
fi
-if [ "$VERBOSITY" -ge 1 ]; then
- echo "[api] Starting API service..."
-fi
+echo "Starting API service..."
exec dotnet AliasVault.Api.dll
\ No newline at end of file
diff --git a/dockerfiles/s6-scripts/client/run b/dockerfiles/s6-scripts/client/run
index aea6c3a75..a3195679d 100644
--- a/dockerfiles/s6-scripts/client/run
+++ b/dockerfiles/s6-scripts/client/run
@@ -39,16 +39,14 @@ EOF
sed -i "s|/usr/share/nginx/html|/app/client/wwwroot|g" /app/client/nginx.conf
-if [ "$VERBOSITY" -ge 1 ]; then
- echo "[client] Starting Client service (nginx)..."
-fi
+echo "Starting Client service..."
# Set nginx error log level based on verbosity
if [ "$VERBOSITY" -ge 2 ]; then
# Verbose: info level
exec nginx -c /app/client/nginx.conf -g "daemon off; error_log /dev/stderr info;"
elif [ "$VERBOSITY" -ge 1 ]; then
- # Normal: warn level
+ # Normal: warn level
exec nginx -c /app/client/nginx.conf -g "daemon off; error_log /dev/stderr warn;"
else
# Minimal: error level only
diff --git a/dockerfiles/s6-scripts/init/script b/dockerfiles/s6-scripts/init/script
index 111dd3896..9910fe03a 100644
--- a/dockerfiles/s6-scripts/init/script
+++ b/dockerfiles/s6-scripts/init/script
@@ -31,11 +31,12 @@ echo "[init] Starting AliasVault..."
echo ""
# Create required directories
-log 0 "[init] Creating required directories..."
-mkdir -p /database/postgres /logs/postgres /certificates /secrets /var/run/postgresql
-
-# Initialize secrets if they don't exist
-log 0 "[init] Checking and initializing secrets..."
+if [ ! -d /database/postgres ] || [ ! -d /logs/postgres ] || [ ! -d /certificates ] || [ ! -d /secrets ] || [ ! -d /var/run/postgresql ]; then
+ mkdir -p /database/postgres /logs/postgres /certificates /secrets /var/run/postgresql
+ log 0 "[init] ✅ Required directories created"
+else
+ log 0 "[init] ✅ Required directories already exist"
+fi
if [ ! -f /secrets/postgres_password ]; then
log 0 "[init] → Generating PostgreSQL password..."
@@ -81,7 +82,7 @@ if [ ! -f /secrets/admin_password_hash ]; then
log 0 "[init] ✅ Admin password hash saved to /secrets/admin_password_hash"
else
log 0 "[init] ✅ Admin password hash already exists"
- log 0 "[init] (to reset the admin password, delete the file ./secrets/admin_password_hash and restart the container)"
+ log 0 "[init] → (to reset the admin password, delete the file ./secrets/admin_password_hash and restart the container)"
fi
# Read PostgreSQL password for database initialization
diff --git a/dockerfiles/s6-scripts/nginx/run b/dockerfiles/s6-scripts/nginx/run
index 5adcc5b26..d8e6e365e 100644
--- a/dockerfiles/s6-scripts/nginx/run
+++ b/dockerfiles/s6-scripts/nginx/run
@@ -38,25 +38,25 @@ for i in {1..60}; do
sleep 1
done
-if [ "$VERBOSITY" -ge 0 ]; then
- echo "[nginx] ========================================="
- echo "[nginx] AliasVault is now ready and accessible!"
- echo "[nginx] ========================================="
- echo "[nginx]"
- echo "[nginx] 🌐 Web Access:"
- echo "[nginx] • HTTPS: https://localhost:443 (or your custom mapped port)"
- echo "[nginx] • Admin: https://localhost:443/admin (or your custom mapped port)"
- echo "[nginx]"
- echo "[nginx] 🔑 Admin Password:"
- echo "[nginx] • The admin password is stored in the /secrets/admin_password_hash file"
- echo "[nginx] • To reset the admin password, delete the file and restart the container"
- echo "[nginx] • The password is also displayed in the admin panel after first login"
- echo "[nginx]"
- echo "[nginx] 📧 Email Ports (if email server enabled):"
- echo "[nginx] • SMTP: port 25 (or your custom mapped port)"
- echo "[nginx] • SMTP TLS: port 587 (or your custom mapped port)"
- echo "[nginx]"
-fi
+echo "Starting main reverse proxy server..."
+echo ""
+echo "[nginx] ========================================="
+echo "[nginx] AliasVault is now ready and accessible!"
+echo "[nginx] ========================================="
+echo "[nginx]"
+echo "[nginx] 🌐 Web Access:"
+echo "[nginx] • HTTPS: https://localhost:443 (or your custom mapped port)"
+echo "[nginx] • Admin: https://localhost:443/admin (or your custom mapped port)"
+echo "[nginx]"
+echo "[nginx] 🔑 Admin Password:"
+echo "[nginx] • The admin password is stored in the /secrets/admin_password_hash file"
+echo "[nginx] • To reset the admin password, delete the file and restart the container"
+echo "[nginx] • The password is also displayed in the admin panel after first login"
+echo "[nginx]"
+echo "[nginx] 📧 Email Ports (if email server enabled):"
+echo "[nginx] • SMTP: port 25 (or your custom mapped port)"
+echo "[nginx] • SMTP TLS: port 587 (or your custom mapped port)"
+echo "[nginx]"
# Set nginx error log level based on verbosity
if [ "$VERBOSITY" -ge 2 ]; then
diff --git a/dockerfiles/s6-scripts/postgres/run b/dockerfiles/s6-scripts/postgres/run
index d9a64d425..649982ad4 100644
--- a/dockerfiles/s6-scripts/postgres/run
+++ b/dockerfiles/s6-scripts/postgres/run
@@ -8,9 +8,7 @@ export PGDATA="/database/postgres"
VERBOSITY="${ALIASVAULT_VERBOSITY:-0}"
# Only show startup message at verbosity level 1+
-if [ "$VERBOSITY" -ge 1 ]; then
- echo "[postgres] Starting PostgreSQL server..."
-fi
+echo "Starting PostgreSQL server..."
# Run PostgreSQL as postgres user with appropriate logging
if [ "$VERBOSITY" -ge 2 ]; then
diff --git a/dockerfiles/s6-scripts/smtp/run b/dockerfiles/s6-scripts/smtp/run
index 73059bc1d..e9a6b5e60 100644
--- a/dockerfiles/s6-scripts/smtp/run
+++ b/dockerfiles/s6-scripts/smtp/run
@@ -43,8 +43,6 @@ else
export Logging__LogLevel__Microsoft="Error"
fi
-if [ "$VERBOSITY" -ge 1 ]; then
- echo "[smtp] Starting SMTP service..."
-fi
+echo "Starting SMTP service..."
exec dotnet AliasVault.SmtpService.dll
\ No newline at end of file
diff --git a/dockerfiles/s6-scripts/taskrunner/run b/dockerfiles/s6-scripts/taskrunner/run
index 16ef1cb61..e4776c901 100644
--- a/dockerfiles/s6-scripts/taskrunner/run
+++ b/dockerfiles/s6-scripts/taskrunner/run
@@ -41,8 +41,6 @@ else
export Logging__LogLevel__Microsoft="Error"
fi
-if [ "$VERBOSITY" -ge 1 ]; then
- echo "[taskrunner] Starting TaskRunner service..."
-fi
+echo "Starting TaskRunner service..."
exec dotnet AliasVault.TaskRunner.dll
\ No newline at end of file