lemmy: lemmy.hacktivism.ch behind Caddy :9026

This commit is contained in:
Hernâni Marques 2026-08-17 13:53:59 +02:00
parent 0ab4b08aac
commit 66dbf417f8
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
18 changed files with 327 additions and 6 deletions

View file

@ -0,0 +1,21 @@
# user systemd — Lemmy postgres
[Unit]
Description=Lemmy postgres (koopa-lemmy-db)
Wants=network-online.target
After=network-online.target
RequiresMountsFor=%t/containers
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
RestartSec=20
TimeoutStartSec=300
TimeoutStopSec=120
WorkingDirectory=/home/hernani/koopa-lemmy
ExecStart=/usr/bin/podman-compose up -d postgres
ExecStop=/usr/bin/podman stop -t 30 koopa-lemmy-db
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=default.target