> For the complete documentation index, see [llms.txt](https://docs.alpha-security.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alpha-security.app/getting-started/quickstart.md).

# Quick Start

Get Alpha running in five minutes with Docker Compose.

## 1. Clone the repo

```bash
git clone https://github.com/shoamshilo/alpha-security.git
cd alpha-security
```

## 2. Configure environment

```bash
cd deploy
cp .env.example .env
```

Open `.env` and set these values:

* `POSTGRES_PASSWORD` to something strong
* `ALPHA_JWT_SECRET` to a random string (run `openssl rand -hex 32`)
* `ALPHA_TOTP_ENCRYPTION_KEY` to another random hex string (same command), only needed if you plan to use MFA

## 3. Start everything

```bash
docker compose -f docker-compose.prod.yml up -d
```

This starts Postgres, the API server, and the web frontend. Wait about 30 seconds for migrations to run on first boot.

## 4. Create the first admin

```bash
docker compose -f docker-compose.prod.yml exec server \
  node dist/main.js cli create-admin \
  --email you@example.com \
  --password YourPassword123
```

## 5. Open the web UI

Go to `http://localhost` in your browser and log in with the email and password you just created.

## Next steps

* [Create your first engagement](/user-guide/engagements.md) in the web UI
* [Set up the collector](/getting-started/first-capture.md) on your testing machine
* [Read about TLS](/deployment/tls.md) if you're deploying on a network


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.alpha-security.app/getting-started/quickstart.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
