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

# Installation Options for Tyk Self-Managed

> Explore the various installation options for Tyk Self-Managed, including Docker, Kubernetes, Linux packages, Ansible, and more.

export const ResponsiveGrid = ({children}) => {
  return <div className="responsive-grid">
      {children}
    </div>;
};

| Edition    | Deployment Type      |
| :--------- | :------------------- |
| Enterprise | Self-Managed, Hybrid |

<Note>
  This page is for installing **Tyk Self-Managed**. If you are looking to use Tyk as part of **Tyk Cloud**, please refer to [the Tyk Cloud documentation](/getting-started/create-account).
</Note>

## Architecture

<img src="https://mintcdn.com/tyk/LfMGUR8oN-JNy9-Z/img/diagrams/diagram_docs_pump-data-flow@2x.png?fit=max&auto=format&n=LfMGUR8oN-JNy9-Z&q=85&s=710295a4a71dfc7b11c1f55e07217a84" alt="Tyk Self-Managed Archtecture" width="2000" height="1250" data-path="img/diagrams/diagram_docs_pump-data-flow@2x.png" />

## Requirements

**Tyk Dashboard** requires a persistent datastore for its operations. By default MongoDB is used. From Tyk v4.0, we also support PostgreSQL.

### PostgreSQL

| Tyk Version | PostgreSQL Version |
| ----------- | ------------------ |
| From 4.X    | PSQL 14.x          |
| From 5.X    | PSQL 15.x          |
| From 5.X    | PSQL 16.x          |
| From 5.9    | PSQL 17.x          |

### MongoDB

| Tyk Version | MongoDB Version   |
| ----------- | ----------------- |
| From 5.X    | MongoDB 5.0 (EOL) |
| From 5.X    | MongoDB 6.0       |
| From 5.X    | MongoDB 7.0       |
| From 5.9    | MongoDB 8.0       |

See [Database Options](/api-management/dashboard-configuration#supported-database) for a list of versions and drop-in replacements we support.

### Redis

**Tyk Gateway** requires Redis for its operations. Here is the list of supported versions:

| Tyk Version         | Redis Version                     |
| ------------------- | --------------------------------- |
| From 3.x.x          | 2.8.x, 3.x.x, 4.x.x, 5.x.x, 6.x.x |
| From 4.x.x          | 2.8.x, 3.x.x, 4.x.x, 5.x.x, 6.x.x |
| From 5.0.x to 5.8.x | 6.2.x, 7.x                        |
| From 5.9.x onwards  | 6.2.x, 7.x, 7.4.x                 |

Visit the [Redis page](/planning-for-production/database-settings#redis) for more info.

## Recommended Installation: Docker

For development, testing, and proof of concept purposes, we recommend using our Docker installation, which allows you to quickly spin up a full Tyk stack on your local machine.

<ResponsiveGrid>
  <Card href="/tyk-self-managed/install/docker" img="https://mintcdn.com/tyk/zB4143fn76CY8N8G/img/docker.png?fit=max&auto=format&n=zB4143fn76CY8N8G&q=85&s=543bd6db2669aa77580d09d33ada2bfb" width="71" height="61" data-path="img/docker.png">
    Install with Docker
  </Card>
</ResponsiveGrid>

## Alternative Installation Methods

<ResponsiveGrid>
  <Card href="/tyk-self-managed/install/kubernetes" img="https://mintcdn.com/tyk/IjX3R2JMsyaApv0U/img/k8s.png?fit=max&auto=format&n=IjX3R2JMsyaApv0U&q=85&s=055a2af65cf31c5bfcd60aedfd2d8154" width="70" height="69" data-path="img/k8s.png">
    Install on K8s
  </Card>

  <Card href="/tyk-self-managed/install/methods#install-with-ansible" img="https://mintcdn.com/tyk/iulB7pWrSP_hEp45/img/ansible.png?fit=max&auto=format&n=iulB7pWrSP_hEp45&q=85&s=031e2da9dcff8801625a43cea59ad8b0" width="80" height="80" data-path="img/ansible.png">
    Install with Ansible
  </Card>

  <Card href="/tyk-self-managed/install/linux#install-tyk-on-redhat-rhel-centos" img="https://mintcdn.com/tyk/ChDYPVy4Xhs0C46X/img/redhat-logo2.png?fit=max&auto=format&n=ChDYPVy4Xhs0C46X&q=85&s=25fea7ab74c9487ebed708a309115701" width="70" height="55" data-path="img/redhat-logo2.png">
    Install on Red Hat
  </Card>

  <Card href="/tyk-self-managed/install/linux#install-tyk-on-debian-or-ubuntu" img="https://mintcdn.com/tyk/LfMGUR8oN-JNy9-Z/img/debian-nd-753.png?fit=max&auto=format&n=LfMGUR8oN-JNy9-Z&q=85&s=573b203e8bc6ae6532acc0797cfbbd4d" width="57" height="69" data-path="img/debian-nd-753.png">
    Install on Ubuntu
  </Card>

  <Card href="/tyk-self-managed/install/methods#install-on-aws-marketplace" img="https://mintcdn.com/tyk/ssEAtsjYp7OiT_UZ/img/aws.png?fit=max&auto=format&n=ssEAtsjYp7OiT_UZ&q=85&s=e6ff628912c47b92f043dcda898e8a11" width="71" height="43" data-path="img/aws.png">
    Install on Amazon AWS
  </Card>

  <Card href="/tyk-self-managed/install/methods#install-on-heroku" img="https://mintcdn.com/tyk/CFsPQ7Ng6kZSS6QM/img/heroku-logo.png?fit=max&auto=format&n=CFsPQ7Ng6kZSS6QM&q=85&s=441b25088e8fe2a453cdb43067fab60b" width="70" height="73" data-path="img/heroku-logo.png">
    Install Tyk on Heroku
  </Card>

  <Card href="/tyk-self-managed/install/methods#install-on-microsoft-azure" img="https://mintcdn.com/tyk/iulB7pWrSP_hEp45/img/azure-2.png?fit=max&auto=format&n=iulB7pWrSP_hEp45&q=85&s=e4f31b7b40449ee3f55ccb9be262ffee" width="70" height="55" data-path="img/azure-2.png">
    Install on Microsoft Azure
  </Card>
</ResponsiveGrid>

## Air Gapped Installation

For environments with restricted network access, we provide guidance on how to deploy Tyk using private container registries and local package mirrors.

Refer to our [Air-Gapped Deployment guide](/api-management/air-gapped-deployment) for detailed instructions on how to set up Tyk in air-gapped or network-restricted environments.
