Skip to main content

Installation

Run Perga locally with Docker in two ways:

  • Quick install with install.sh
  • Manual install with docker compose

Quick install

  1. Download install script
mkdir -p perga-install && cd perga-install && \
curl -fsSL -o install.sh https://docs.getperga.me/installation/install.sh && \
chmod +x install.sh
  1. Run install script
./install.sh

Notes:

  • You can customize .env and nginx.conf files, and then run install script again.
  1. Verify and access

Manual install

  1. Download installation files
mkdir -p perga-install && cd perga-install && \
mkdir -p nginx && \
curl -fsSL \
-o docker-compose.yml https://docs.getperga.me/installation/docker-compose.yml \
-o .env.example https://docs.getperga.me/installation/.env.example \
-o nginx/nginx.conf https://docs.getperga.me/installation/nginx/nginx.conf
  1. Create and edit your env
cp .env.example .env
# open .env and set strong SECRET_KEY and DB creds

Env vars:

  • POSTGRES_* — Postgres DB host, name and credentials
  • API_BASE_URL — Web → API URL (default http://127.0.0.1:8000/api/v1)
  • CORS_ORIGINS, SECRET_KEY — API security (use a strong random secret)
  • IS_SIGNUP_DISABLED — set true to disable self‑signup
  1. Start services
docker compose pull
docker compose up -d

# check status
docker compose ps

# stop perga
docker-compose down

# view logs
docker-compose logs -f
  1. Verify and access