Multi-stage build (node -> go -> alpine) producing the static tefterd binary with the frontend embedded. Compose follows the house style for the podman/SELinux server (:Z volume label + label:disable). deploy/ holds the user systemd unit and redeploy-tefter.sh, mirroring the apelacija setup. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
590 B
Desktop File
21 lines
590 B
Desktop File
# User unit — install to ~/.config/systemd/user/tefter.service, then:
|
|
# systemctl --user daemon-reload && systemctl --user enable --now tefter.service
|
|
# Requires lingering (loginctl enable-linger) so it survives logout.
|
|
|
|
[Unit]
|
|
Description=Tefter notes server (podman-compose)
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=%h/tefter
|
|
EnvironmentFile=%h/tefter/.env.docker
|
|
ExecStart=/home/hamo/.local/bin/podman-compose up
|
|
ExecStop=/home/hamo/.local/bin/podman-compose down
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=default.target
|