Restructure backend into microservices, add envelope encryption, DM files, and message editing

This commit is contained in:
2026-01-10 14:59:31 +03:00
Unverified
parent 1f706eaa34
commit fd4c00057c
74 changed files with 6647 additions and 820 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# Custom entrypoint for PostgreSQL that processes the init template
set -e
# If this is the first run (data directory is empty), process the template
if [ ! -f /var/lib/postgresql/data/PG_VERSION ]; then
echo "Processing PostgreSQL init template..."
# Substitute environment variables in the SQL template
envsubst < /docker-entrypoint-initdb.d/init-postgres.sql.template > /docker-entrypoint-initdb.d/init-postgres.sql
echo "Template processing complete."
else
echo "PostgreSQL data directory already exists, skipping template processing."
fi
# Execute the original PostgreSQL entrypoint
exec /usr/local/bin/docker-entrypoint.sh "$@"