Create your own template using https://github.com/Magento-Garage/docksal-magneto and update .docksal/docksal.env file with your project specific variables.

If docksal is not already installed:Follow  https://docksal.io/installation for installation steps.

If you are starting fresh, you can just run below command with your project name and it will setup everything for you in your project repo.

fin project create --repo=https://github.com/Magento-Garage/docksal-magneto.git --name=<PROJECT_NAME>

cd <PROJECT_NAME>

If you want to use your existing magento 2 code, you must have it in a git repo and add the git url in .docksal/docksal.env file.

Available commands:

fin init-site //Install magento 2 with env. variables

fin magento // run magento 2 cli commands in container

It will prompt for username/password for repo.magento.com if your code repo isn't having auth.json
Follow: https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html

To enable redis cache: fin redis enable

You can configure Magento 2 installation variables in .docksal/docksal.env file.