> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.hyperswitch.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PostgreSQL Setup

> Set up Decision Engine with a PostgreSQL database.

# PostgreSQL Setup Guide

This page provides PostgreSQL-focused commands. For the full end-to-end setup — CLI, Docker, Compose, Helm — see the [Local Setup Guide](/decision-engine-api-reference/local-setup).

## Docker Compose (GHCR track)

```bash theme={null}
export DECISION_ENGINE_TAG=v1.4
COMPOSE_PROFILES= docker compose --profile postgres-ghcr up -d
```

With dashboard + docs:

```bash theme={null}
COMPOSE_PROFILES= docker compose --profile dashboard-postgres-ghcr up -d
```

## Docker Compose (Local build track)

```bash theme={null}
COMPOSE_PROFILES= docker compose --profile postgres-local up -d --build
```

With dashboard + docs:

```bash theme={null}
COMPOSE_PROFILES= docker compose --profile dashboard-postgres-local up -d --build
```

## Make targets

```bash theme={null}
make init-pg-ghcr
make init-pg-local
```

## Verify

```bash theme={null}
curl http://localhost:8080/health
```

Expected response:

```json theme={null}
{"message":"Health is good"}
```

## Related Docs

* [Installation](/decision-engine-api-reference/installation)
* [Local Setup Guide](/decision-engine-api-reference/local-setup)
* [MySQL Setup](/decision-engine-api-reference/setup-guide-mysql)
* [Configuration](/decision-engine-api-reference/configuration)
