fleet/infrastructure/render/README.md

44 lines
1.9 KiB
Markdown
Raw Normal View History

2024-05-08 18:12:40 +00:00
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/fleetdm/fleet)
2024-08-06 05:16:33 +00:00
# Fleet deployment guide
2024-05-08 18:12:40 +00:00
This guide outlines the services configured in the Render blueprint for deploying the Fleet system, which includes a web service, a MySQL database, and a Redis server.
2024-08-06 05:16:33 +00:00
## Services overview
2024-05-08 18:12:40 +00:00
2024-08-06 05:16:33 +00:00
### 1. Fleet web service
2024-05-08 18:12:40 +00:00
- **Type:** Web
- **Runtime:** Image
- **Image:** `fleetdm/fleet:latest`
- **Description:** Main web service running the Fleet application, which is deployed using the latest Fleet Docker image. Configured to prepare the database before deployment.
2024-08-06 05:16:33 +00:00
- **Health check path:** `/healthz`
- **Environment variables:** Connects to MySQL and Redis using service-bound environment variables.
2024-05-08 18:12:40 +00:00
2024-08-06 05:16:33 +00:00
### 2. Fleet MySQL database
- **Type:** Private service (pserv)
2024-05-08 18:12:40 +00:00
- **Runtime:** Docker
- **Repository:** [MySQL Example on Render](https://github.com/render-examples/mysql)
- **Disk:** 10 GB mounted at `/var/lib/mysql`
- **Description:** MySQL database used by the Fleet web service. Environment variables for database credentials are managed within the service and some are automatically generated.
2024-08-06 05:16:33 +00:00
### 3. Fleet Redis service
- **Type:** Private service (pserv)
2024-05-08 18:12:40 +00:00
- **Runtime:** Image
- **Repository:** [Redis Docker image](https://hub.docker.com/_/redis)
- **Description:** Redis service for caching and other in-memory data storage needs of the Fleet web service.
2024-08-06 05:16:33 +00:00
## Deployment guide
2024-05-08 18:12:40 +00:00
### Prerequisites
- You need an account on [Render](https://render.com).
- Familiarity with Render's dashboard and deployment concepts.
2024-08-06 05:16:33 +00:00
### Steps to deploy
2024-05-08 18:12:40 +00:00
Click the deploy on render button or import the blueprint from the Render service deployment dashboard.
2024-08-06 05:16:33 +00:00
### Post-deployment
2024-05-08 18:12:40 +00:00
Navigate to the generated URL and run through the initial setup. If you have a license key you can add it post-deploy as
an environment variable `FLEET_LICENSE_KEY=value` in the Fleet service configuration.