Skip to content

Get Started

Install Pigsty on one Linux node. Read the setup guide in an ASD-STE100-inspired style.

Use this guide to install Pigsty on one Linux node. Start with Quick Start. A node with 1 CPU core and 2 GB of memory is sufficient.

You can use a Linux MiniPC, a cloud server, Windows WSL, or a virtual machine on your laptop. Pigsty supplies Vagrant templates for local virtual machines. It also supplies OpenTofu templates for cloud servers.

Pigsty architecture

The single-node installation includes these features:

External object storage can keep PostgreSQL backups outside the node. These backups improve data durability for demonstrations, personal websites, and small services. A single node cannot provide high availability. Automatic failover requires at least three nodes.

Choose the installation method that meets your requirements:

RequirementGuide
Install Pigsty on one Linux nodeQuick Start
Try Pigsty on macOS or WindowsDocker Deployment
Install without Internet accessOffline Installation
Install PostgreSQL without monitoring servicesSlim Installation
Deploy multiple nodes for productionDeployment Guide

Quick Start

  1. Prepare a node with a supported Linux operating system.
  2. Use an administration account with passwordless SSH and sudo access.
  3. Run the commands below.
curl -fsSL https://repo.pigsty.io/get | bash  # Install Pigsty and dependencies
cd ~/pigsty; ./configure -g                   # Generate config (with 1-node template, -g generates random passwords)
./deploy.yml                                  # Execute deployment playbook

The installation script downloads Pigsty and installs its dependencies. The configuration script creates pigsty.yml and generates random passwords. The deployment playbook installs the modules in the configuration file.

You can also select a configuration template. The template supplies the initial configuration.

After deployment, do these tasks:

Install, configure, and deploy Pigsty on one Linux node.

Run Pigsty in a Docker container for local development and testing.

Open the Web UI, view monitoring dashboards, and configure domain access.

Connect to PostgreSQL with command-line tools and graphical clients.

Define nodes, modules, databases, and users in the Pigsty inventory.

Use Ansible playbooks to deploy and manage Pigsty clusters.

Install Pigsty without Internet access. Use or build offline packages.

Install PostgreSQL clusters without the monitoring infrastructure.

Was this page helpful?