Rancher CLI not working as expected

The 2.x and 1.x are basically entirely unrelated, including the CLI. 2.x supports kubernetes manifests, not docker-compose files. This is not going to change. You provided a YAML file which has no kubernetes resources in it, so up does nothing.