Deploy Fleet

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

Deploy Fleet

/var/lib/mysql

/data

Just deployed

/data

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

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.


Template Content

More templates in this category

View Template
Rootprint
Open-source logs and traces with full-text search on object-storage.

Rootprint
1
View Template
Pyroscope profiling
Protected continuous profiling with durable Pyroscope storage.

Anton Orel
1
View Template
SigOnly
Deploy SigNoz with a working demo app & config in one click

zoeyjones
21