{
  "version": 5,
  "script": {
    "version": "0.1.0",
    "changeLog": "Auto-generated draft from TrueNAS tmodloader 1.0.5"
  },
  "requirements": {
    "locations": ["ApplicationsPerformance", "ApplicationsCapacity"],
    "specifications": ["2CORE"],
    "permissions": ["READ_WRITE_LOCATIONS"],
    "ports": [30524, 30525]
  },
  "ensure_directories_exists": [
    {"path": "$LOCATION(ApplicationsPerformance)"},
    {"path": "$LOCATION(ApplicationsPerformance)/tmodloader"},
    {"path": "$LOCATION(ApplicationsCapacity)"},
    {"path": "$LOCATION(ApplicationsCapacity)/tmodloader"},
    {
      "path": "$LOCATION(ApplicationsPerformance)/tmodloader/data",
      "snapshot": {"id": "data"}
    },
    {"path": "$LOCATION(ApplicationsCapacity)/tmodloader/backups"}
  ],
  "app_values": {
    "storage": {
      "data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/tmodloader/data)",
      "backups": "$HOST_PATH($LOCATION(ApplicationsCapacity)/tmodloader/backups)"
    },
    "network": {
      "server_port": {"bind_mode": "published", "port_number": 30524},
      "web_port": {"bind_mode": "published", "port_number": 30525}
    },
    "resources": {"limits": {"cpus": 2, "memory": "$MEMORY(10%, 4096)"}}
  }
}
