Installation
Run Perga locally with Docker in two ways:
- Quick install with
install.sh - Manual install with
docker compose
Quick install
- 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
- Run install script
./install.sh
Notes:
- You can customize .env and nginx.conf files, and then run install script again.
- Verify and access
- Web UI: http://localhost:3000
- API docs: http://localhost:8000/docs
Manual install
- 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
- 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 credentialsAPI_BASE_URL— Web → API URL (defaulthttp://127.0.0.1:8000/api/v1)CORS_ORIGINS,SECRET_KEY— API security (use a strong random secret)IS_SIGNUP_DISABLED— settrueto disable self‑signup
- 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
- Verify and access
- Web UI: http://localhost:3000
- API docs: http://localhost:8000/docs