# Self-host HortusFox

> A collaborative plant management app for home gardens and plant collections.

- Page: https://levelrail.com/templates/hortusfox/
- JSON: https://levelrail.com/templates/hortusfox.json
- Category: Applications
- Licence: MIT (Permissive license)
- Source: https://github.com/danielbrendel/hortusfox-web
- Upstream docs: https://github.com/danielbrendel/hortusfox-web

## Requirements
- Memory: about 512 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v6.4

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| app | ghcr.io/danielbrendel/hortusfox-web | v6.4 | 80 | app_images -> /var/www/html/public/img; app_logs -> /var/www/html/app/logs; app_backup -> /var/www/html/public/backup; app_themes -> /var/www/html/public/themes; app_migrate -> /var/www/html/app/migrations |
| db | mariadb | 11 | none | db_data -> /var/lib/mysql |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| app | APP_ADMIN_EMAIL | preset |
| app | APP_ADMIN_PASSWORD | generated |
| app | APP_TIMEZONE | preset |
| app | DB_CHARSET | preset |
| app | DB_DATABASE | preset |
| app | DB_HOST | preset |
| app | DB_PASSWORD | generated |
| app | DB_PORT | preset |
| app | DB_USERNAME | preset |
| db | MARIADB_DATABASE | preset |
| db | MARIADB_PASSWORD | generated |
| db | MARIADB_ROOT_PASSWORD | generated |
| db | MARIADB_USER | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy hortusfox --name my-hortusfox
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/hortusfox/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy HortusFox on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id hortusfox for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/danielbrendel/hortusfox-web:v6.4, mariadb:11 is what you deploy there.

Self-host HortusFox, HortusFox docker compose file, deploy HortusFox on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
