[Unit] Description=PostgreSQL Database [Container] Image=docker.io/groonga/pgroonga:latest-alpine-18 ContainerName=postgresql EnvironmentFile=/etc/containers/systemd/postgresql/.env Network=postgresql.network UserNS=keep-id:uid=999,gid=999 Volume=/var/containers/postgresql/data:/var/lib/postgresql/data:Z Volume=/var/containers/postgresql/exp:/mnt/exp:Z # Health HealthCmd=pg_isready -U postgres -d postgres HealthOnFailure=kill HealthStartPeriod=30s Notify=healthy # Security NoNewPrivileges=true [Service] Restart=always RestartSec=10s [Install] WantedBy=default.target