# {{ ansible_managed }} # mk-labs pgvector-enabled PostgreSQL backing store for Honcho # Managed by Ansible - honcho role [Unit] Description=PostgreSQL (pgvector) for Honcho After=network-online.target Wants=network-online.target [Container] Image={{ honcho_postgres_image }} ContainerName={{ honcho_postgres_container_name }} Network={{ honcho_network_name }} # Persistent data on a named volume. :Z relabels for SELinux; harmless on # Ubuntu's ext4/apparmor stack and portable to any future host. Volume={{ honcho_postgres_volume }}:/var/lib/postgresql/data:Z Environment=POSTGRES_USER={{ honcho_db_user }} Environment=POSTGRES_DB={{ honcho_db_name }} Environment=POSTGRES_PASSWORD={{ honcho_db_password }} Environment=POSTGRES_INITDB_ARGS={{ honcho_postgres_initdb_args }} # Healthcheck — systemd doesn't act on this, but it's useful diagnostically HealthCmd=pg_isready -U {{ honcho_db_user }} -d {{ honcho_db_name }} HealthInterval=10s HealthTimeout=5s HealthRetries=3 [Service] Restart=always TimeoutStartSec=120 [Install] WantedBy=multi-user.target default.target