---
title: "Deploy Fleet"
description: "Fleet v4.95.0 device management with MySQL 8.4 and Redis, all on volumes"
category: "Observability"
url: https://railway.com/deploy/fleet
---

# Deploy Fleet

Fleet v4.95.0 device management with MySQL 8.4 and Redis, all on volumes

**[Deploy Fleet on Railway](https://railway.com/template/fleet)**

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

- **Creator:** Agaz Self-Host
- **Category:** Observability

## Template content

### MySQL https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/mysql.png

- **Source:** https://github.com/aalfath/fleet-railway-template

### Fleet https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/fleetdm.png

- **Source:** https://github.com/aalfath/fleet-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

### Redis https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/redis.png

- **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 Fleet on Railway

Fleet is open-source device management from Fleet Device Management Inc. It enrolls macOS, Windows, Linux, ChromeOS, iOS and Android hosts and shows their hardware, software and settings. You can run live osquery queries, check policies, find vulnerable software, and, with your own Apple or Windows MDM setup, push profiles and OS updates.

## About Hosting Fleet

This template deploys Fleet v4.95.0 with MySQL 8.4 LTS and Redis, wired over Railway's private network. Fleet and MySQL build from a public GitHub repo that pins the official images by version and digest, so you get Railway's update notice when we release a new version. MySQL, Redis and Fleet's own data (software installers, vulnerability databases, rotated osquery logs) each sit on a volume. On every start, Fleet waits for MySQL, applies its database migrations, then serves the web UI and API on a Railway domain with a health check. All secrets are generated per deployment, and you create the admin account on Fleet's setup page.

## Common Use Cases

* Keep a live inventory of laptops and servers across macOS, Windows and Linux, with installed software and hardware details
* Run osquery queries and compliance policies across all hosts, and find hosts with vulnerable software (CVEs)
* Deploy software and scripts to devices, and manage Apple and Windows MDM when you add your own certificates

## Dependencies for Fleet Hosting

* MySQL 8.0.44 or later (8.4 LTS is included and pinned)
* Redis (Railway's Redis is included)

### Deployment Dependencies

* Fleet release notes: https://github.com/fleetdm/fleet/releases/tag/fleet-v4.95.0
* Fleet server configuration reference: https://fleetdm.com/docs/configuration/fleet-server-configuration
* Template repo (Dockerfiles, start scripts, changelog): https://github.com/aalfath/fleet-railway-template

### Implementation Details

After deploy:

1. Open the Fleet service's public URL right away and finish Fleet's setup page (name, email, password, organization). It creates the first admin, and the setup page closes once the admin exists.
2. Enroll hosts from **Hosts, Add hosts**: Fleet builds a fleetd installer or shows osquery flags for your server URL and enroll secret.
3. If you add a custom domain, update **Settings, Organization settings, Fleet web address**.

Optional settings go on the Fleet service as variables: `FLEET_LICENSE_KEY` for Fleet Premium, `FLEET_S3_SOFTWARE_INSTALLERS_*` to keep installers in S3, and SMTP or MDM as described in Fleet's docs. Keep `FLEET_SERVER_PRIVATE_KEY` unchanged after the first start, because it encrypts secrets stored in MySQL.

Updates: when we bump the pinned version, Railway shows an update notice on your project. Read the repo's CHANGELOG.md and Fleet's release notes first, and back up the MySQL volume, because Fleet's migrations can't be rolled back.

## Why Deploy Fleet on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Fleet on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click

Open this page in a browser: https://railway.com/deploy/fleet
