mirror of
https://github.com/fleetdm/fleet
synced 2026-05-14 12:38:41 +00:00
If a "plan" is not defined, render will default to its "starter" instance type. For MySQL this means an instance with 0.5 CPU and 512MBs of RAM. In my testing with only a few hosts enrolled, this resulted in the service regularly running out of memory and needing to restart. Bumping this up to a "standard" instance type with 1 CPU and 2 GBs of RAM has shown to be more stable. Redis continues to operate without issue on the "starter" instance type but included defining this in the yaml so it can be updated in the future if needed.
74 lines
1.7 KiB
YAML
74 lines
1.7 KiB
YAML
services:
|
|
- name: fleet
|
|
plan: standard
|
|
type: web
|
|
runtime: image
|
|
image:
|
|
url: 'fleetdm/fleet:latest'
|
|
preDeployCommand: "fleet prepare --no-prompt=true db"
|
|
healthCheckPath: /healthz
|
|
disk:
|
|
name: installers
|
|
mountPath: /opt/fleet/installers
|
|
sizeGB: 10
|
|
envVars:
|
|
- key: FLEET_SOFTWARE_INSTALLER_STORE_DIR
|
|
value: '/opt/fleet/installers'
|
|
- key: FLEET_SERVER_PRIVATE_KEY
|
|
generateValue: true
|
|
- key: FLEET_MYSQL_ADDRESS
|
|
fromService:
|
|
name: fleet-mysql
|
|
type: pserv
|
|
property: hostport
|
|
- key: FLEET_MYSQL_DATABASE
|
|
fromService:
|
|
name: fleet-mysql
|
|
type: pserv
|
|
envVarKey: MYSQL_DATABASE
|
|
- key: FLEET_MYSQL_PASSWORD
|
|
fromService:
|
|
name: fleet-mysql
|
|
type: pserv
|
|
envVarKey: MYSQL_PASSWORD
|
|
- key: FLEET_MYSQL_USERNAME
|
|
fromService:
|
|
name: fleet-mysql
|
|
type: pserv
|
|
envVarKey: MYSQL_USER
|
|
- key: FLEET_REDIS_ADDRESS
|
|
fromService:
|
|
name: fleet-redis
|
|
type: pserv
|
|
property: hostport
|
|
- key: FLEET_SERVER_TLS
|
|
value: 'false'
|
|
- key: PORT
|
|
value: 8080
|
|
|
|
- name: fleet-mysql
|
|
plan: standard
|
|
type: pserv
|
|
runtime: docker
|
|
repo: https://github.com/render-examples/mysql
|
|
disk:
|
|
name: mysql
|
|
mountPath: /var/lib/mysql
|
|
sizeGB: 10
|
|
envVars:
|
|
- key: MYSQL_DATABASE
|
|
value: fleet
|
|
- key: MYSQL_PASSWORD
|
|
generateValue: true
|
|
- key: MYSQL_ROOT_PASSWORD
|
|
generateValue: true
|
|
- key: MYSQL_USER
|
|
value: fleet
|
|
|
|
- name: fleet-redis
|
|
plan: starter
|
|
type: pserv
|
|
runtime: image
|
|
image:
|
|
url: 'redis:7.2.4'
|
|
|