---
url: https://gha-cache-server.falcondev.io/database-drivers/postgres.md
description: >-
  Use PostgreSQL as the database of the self-hosted GitHub Actions cache server.
  Recommended for production.
---

# PostgreSQL

Driver: `postgres`

## Configuration

### `DB_POSTGRES_DATABASE`

The name of the PostgreSQL database to use.

### `DB_POSTGRES_HOST`

The host of the PostgreSQL database.

### `DB_POSTGRES_PORT`

The port of the PostgreSQL database.

### `DB_POSTGRES_USER`

The user to authenticate with the PostgreSQL database.

### `DB_POSTGRES_PASSWORD`

The password to authenticate with the PostgreSQL database.

### `DB_POSTGRES_URL`

The full URL to the PostgreSQL database. This is an alternative to the above configuration options.
