---
title: Databases
description: Database services on Railway.
---
Railway can support any type of Database service required for an application stack.

Databases can be deployed into a Railway project from a template, or by creating one through the service creation flow.

## How database services work in Railway

Below are the core concepts to understand when working with databases in Railway.

#### Services

Railway services are containers deployed from a Docker Image or code repository, usually with environment variables defined within the service configuration to control the behavior of the service.

#### Volumes

When deploying a database service, data can be persisted between rebuilds of the container by attaching a Volume to the service.

#### TCP proxy

To access a database service from outside the private network of a particular project, proxy traffic to the exposed TCP port by enabling TCP Proxy on the service.

## Database templates

Many database templates are available to Railway users, which ease the process of deploying a database service.

### Railway-provided templates

Railway provides several templates to provision some of the most popular databases out there. They also deploy with a helpful [Database View](/databases/database-view).

Explore the guides in the How To section for information on how to use these templates -

- [PostgreSQL](/databases/postgresql)
- [MySQL](/databases/mysql)
- [MongoDB](/databases/mongodb)
- [Redis](/databases/redis)

### Template marketplace

The <a href="https://railway.com/templates" target="_blank">Template Marketplace</a> includes many solutions for database services.

Here are some examples -

- [Minio](https://railway.com/deploy/SMKOEA)
- [ClickHouse](https://railway.com/deploy/clickhouse)
- [Dragonfly](https://railway.com/deploy/dragonfly)
- [Chroma](https://railway.com/deploy/kbvIRV)
- [ParadeDB](https://railway.com/deploy/paradedb)

## Support

Explore the [Databases](/databases) guide section for more information on how to get started using databases in Railway.