{{ ansible_managed | comment }} [Unit] Description = Postgres for hedgedoc [Service] Restart = always RestartSec = 5s [Container] Image = {{ hedgedoc_postgres_containerimage }}:{{ hedgedoc_postgres_image_tag }} ContainerName = hedgedoc-postgres # AutoUpdate = registry LogDriver = journald # NoNewPrivileges = true ReadOnly = true DropCapability = all AddCapability = CHOWN DAC_OVERRIDE SETUID SETGID UserNS = auto:size=65535 {% if hedgedoc_postgres_selinux_level != omit %} SecurityLabelLevel = {{ hedgedoc_postgres_selinux_level }} {% endif %} EnvironmentFile = {{ hedgedoc_install_dir }}/hedgedoc-postgres.env Volume = hedgedoc-postgres-socket:/var/run/postgresql:U,z Volume = {{ hedgedoc_install_dir }}/postgres:/var/lib/postgresql/data:U Tmpfs = /tmp:rw,noexec,nosuid,nodev,size=1m PodmanArgs = --memory={{ hedgedoc_postgres_memory_high }} PodmanArgs = --memory-swap={{ hedgedoc_postgres_swap_max }} PodmanArgs = --memory-reservation={{ hedgedoc_postgres_memory_low }} PodmanArgs = --stop-signal=SIGINT [Install] WantedBy = default.target