deploy: production deployment for noema.dixon.cx

The systemd unit, nginx vhost, build-and-restart script and operator notes
for running Noema as a Docker container behind nginx against the host
PostgreSQL cluster. Secrets stay in /etc/noema/noema.env, outside the repo.
This commit is contained in:
Andy Dixon
2026-10-10 23:30:35 +01:00
parent 9db3159c32
commit ada0b18b3f
4 changed files with 133 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Build the Noema image and restart the systemd service. Run from anywhere.
set -euo pipefail
cd "$(dirname "$0")/../.."
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo dev)
docker build -f deploy/Dockerfile --build-arg VERSION="$VERSION" -t noema:"$VERSION" -t noema:latest .
sudo systemctl restart noema
sleep 3
systemctl --no-pager --lines=5 status noema