---
title: "Deploy Pterodactyl Panel + MariaDB"
description: "Pterodactyl Panel with MariaDB, Redis, volumes, and private networking."
category: "Other"
url: https://railway.com/deploy/pterodactyl-panel-mariadb
---

# Deploy Pterodactyl Panel + MariaDB

Pterodactyl Panel with MariaDB, Redis, volumes, and private networking.

**[Deploy Pterodactyl Panel + MariaDB on Railway](https://railway.com/template/pterodactyl-panel-mariadb)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/pterodactyl-panel-mariadb/manifest.json

- **Creator:** leodev
- **Category:** Other
- **Total deploys:** 76

## Template content

### panel

- **Source:** https://github.com/leoisadev1/pterodactyl-panel-mariadb
- **Health check:** /auth/login
- **Public domain:** Yes

### MariaDB

- **Image:** mariadb:11.8.8
- **Start command:** `/bin/bash -lc 'export MARIADB_USER="${MARIADB_USER:-pterodactyl}"; export MARIADB_DATABASE="${MARIADB_DATABASE:-panel}"; exec docker-entrypoint.sh mariadbd'`

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

## Documentation

# Deploy and Host Pterodactyl Panel + MariaDB on Railway

Run the Pterodactyl Panel on Railway with private MariaDB, Redis, a Panel volume, and a first admin created on boot.

## About Hosting Pterodactyl Panel + MariaDB

The template starts three services:

- `panel`: public Pterodactyl Panel, pinned to v1.15.1
- `MariaDB`: private MariaDB 11.8 with a volume at `/var/lib/mysql`
- `Redis`: private cache, session, and queue store

The Panel volume at `/app/var` keeps the generated `APP_KEY`. A missing volume would mint a new key on every deploy and make encrypted node tokens unreadable.

This template runs the Panel only. It does not run Wings or game servers. Connect Wings from machines that support Docker, ports, and game workloads.

## Common Use Cases

- Pterodactyl Panel hosting
- Game-server admin dashboards
- External Wings node management

## Dependencies for Pterodactyl Panel + MariaDB Hosting

The Panel needs MariaDB for application data, Redis for cache/session/queue, persistent Panel storage, and Wings nodes you run yourself.

### Deployment Dependencies

- `APP_URL`: public Panel URL
- `DB_*`: private MariaDB connection
- `REDIS_*`: private Redis connection
- `ADMIN_PASSWORD`: first-admin password, same value as the MariaDB password

### After Deploy

1. Open the Panel public URL.
2. Log in as `admin@example.com`.
3. Copy `ADMIN_PASSWORD` from the panel service variables.
4. Change that password.
5. Add Wings nodes on separate infrastructure.

### Why Deploy Pterodactyl Panel + MariaDB on Railway

Railway hosts the Panel, MariaDB, and Redis so you do not have to wire private networking, volumes, or generated secrets by hand. Game servers still run on Wings, not on this stack.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/pterodactyl-panel-mariadb
