一键导入
02-setup-local-postgresql
This skill will guide you through the process of setting up PostgreSQL on your local machine.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill will guide you through the process of setting up PostgreSQL on your local machine.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
This skill will guide you through running the PostgreSQL schema migration for Pronghorn development.
This skill will guide you through setting up the local API server for Pronghorn development, including installing dependencies, configuring environment variables, and starting the server.
This skill will guide you through setting up the local frontend for Pronghorn development, including installing dependencies, configuring .env.local, and starting the Vite development server.
This skill verifies the local Pronghorn stack by checking frontend, API health endpoint, and local PostgreSQL readiness.
Automates Docker Compose full-stack workflows for local Pronghorn development, including build prerequisites, startup, verification, logs, stop, and reset operations.
This skill will guide you through verifying that your deployed AI models are accessible and functioning correctly.
| name | 02.setup-local-postgresql |
| description | This skill will guide you through the process of setting up PostgreSQL on your local machine. |
| argument-hint | Please follow the instructions to set up PostgreSQL on your local machine. |
| compatibility | ["linux","macos","windows"] |
| license | MIT |
| user-invokable | true |
This skill will guide you through the process of setting up a PostgreSQL database on your local machine using Docker. This setup will allow you to have a local instance of PostgreSQL running, which can be used for development and testing purposes.
Run the PowerShell script in your terminal to set up a PostgreSQL Docker container for Pronghorn development:
& ".\.github\skills\02.setup-local-postgresql\scripts\Setup-LocalPostgreSql.ps1"
This script:
-StartIfExists)localdev123)pg_isready after creation/startKeep Docker PostgreSQL on
5432for local defaults. The API runtime dynamically retries common fallback port5433only when5432is unavailable or mismatched.
& ".\.github\skills\02.setup-local-postgresql\scripts\Setup-LocalPostgreSql.ps1"
# Creates container: pronghorn-db
# User: pronghorn_admin
# Database: pronghorn
# Port: 5432
If a container already exists and is stopped, start it with:
& ".\.github\skills\02.setup-local-postgresql\scripts\Setup-LocalPostgreSql.ps1" -StartIfExists
& ".\.github\skills\02.setup-local-postgresql\scripts\Setup-LocalPostgreSql.ps1" `
-ContainerName my-postgres `
-PostgresUser myuser `
-DatabaseName mydb `
-HostPort 5433
This script currently uses a local-dev default password and does not expose a -PostgresPassword parameter.
Once the script completes successfully, you will see PostgreSQL readiness output:
Verifying PostgreSQL readiness for container 'pronghorn-db'...
/var/run/postgresql:5432 - accepting connections
Expected output: /var/run/postgresql:5432 - accepting connections
This confirms your PostgreSQL instance is running and ready for connections.
If the setup script detects a conflicting Windows PostgreSQL service on the requested host port (for example 5432) but cannot stop/disable it, run PowerShell as Administrator and execute:
Stop-Service -Name postgresql-x64-17 -Force
Set-Service -Name postgresql-x64-17 -StartupType Disabled
Then rerun the setup script.