Files
noema/deploy/prod/noema.service
T
Andy Dixon ada0b18b3f 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.
2026-10-10 23:30:35 +01:00

22 lines
552 B
Desktop File

[Unit]
Description=Noema daemon (docker container)
After=docker.service network-online.target postgresql.service
Requires=docker.service
Wants=network-online.target
[Service]
Restart=always
RestartSec=5
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker rm -f noema
ExecStart=/usr/bin/docker run --rm --name noema \
--env-file /etc/noema/noema.env \
-p 127.0.0.1:29630:8080 \
-v /srv/noema/research:/research \
--memory 2g --cpus 4 --pids-limit 512 \
noema:latest
ExecStop=/usr/bin/docker stop -t 30 noema
[Install]
WantedBy=multi-user.target