PostgreSQL 17 + pgvector on Plesk (Docker): A Practical Setup Guide
TL;DR: Build a small derived Docker image that layers the pgvector extension onto the official postgres:17 image, deploy it with the Plesk Docker extension, persist data to the host, then CREATE EXTENSION vector; in your database. You’ll be up and running in minutes—with clean upgrades, backups, and security baked in. What You’ll Build A PostgreSQL 17 container on a Plesk server (Ubuntu 22.04 assumed) The pgvector extension installed and available to all databases Persistent storage on the host at /var/lib/postgres/pg17-data A repeatable, pinned build (no “latest” surprises) Estimated time: 20–30 minutes Prerequisites Plesk Obsidian with the Docker extension installed SSH access with sudo privileges Docker engine available on the host Basic familiarity with Plesk’s Docker UI (Add Container, environment variables, volumes, ports) Why a derived image? We pin the Postgres major version and the pgvector version for reproducibility and security. You can rebuild the image at any time