homek8s/infrastructure/garage-linode/garage.container

38 lines
1.4 KiB
INI
Raw Permalink Normal View History

# Quadlet unit — Garage WAL archive on the Linode hub (10.10.0.5).
#
# Installed to /etc/containers/systemd/garage.container by install.sh; the
# podman systemd generator turns it into `garage.service` on the next
# `systemctl daemon-reload`. There is no docker on this host (it is a kubelet
# node — installing dockerd here would add a second container runtime next to
# the kubelet's containerd for no reason), so the Pi's compose file cannot be
# reused verbatim. Quadlet is the podman-native equivalent: one declarative
# file, systemd owns the lifecycle, no daemon of its own.
#
# Network=host on purpose: the container binds 10.10.0.5:3900 from garage.toml
# directly, so the published addresses are visible in `ss -lnt` on the host and
# no podman port-forwarding rules are injected into the node's netfilter state.
[Unit]
Description=Garage S3 — CloudNativePG WAL archive (WireGuard-only)
Documentation=file:///etc/garage/README.md
After=network-online.target
Wants=network-online.target
[Container]
ContainerName=garage
Image=docker.io/dxflrs/garage:v1.1.0
Network=host
EnvironmentFile=/etc/garage/garage.env
Volume=/etc/garage/garage.toml:/etc/garage.toml:ro
Volume=/var/lib/garage/meta:/data/meta
Volume=/var/lib/garage/data:/data/data
Exec=/garage -c /etc/garage.toml server
LogDriver=journald
[Service]
Restart=always
TimeoutStartSec=120
TimeoutStopSec=60
[Install]
WantedBy=multi-user.target