Prerequisites
1. Clone the Lightdash repository
Clone the Lightdash code to your local machine. This will create a new directory called./lightdash (the Lightdash directory).
2. Update your ENV config
Edit all the ENV variables in.env to match your setup, eg:
3. Create containers
You must set the following two environment variables:PGPASSWORDis the password used for the internal postgres databaseLIGHTDASH_SECRETis the secret used to encrypt data at rest in the database. If you lose this secret, you will not be able to access your data in Lightdash.
volumes lines under the lightdash service in docker-compose.yml (they are commented out by default), and export DBT_PROJECT_DIR with the absolute path to your dbt project on your machine. Lightdash mounts it at /usr/app/dbt inside the container and reads the project from there. The error dbt project directory not found: /dbt names only the last folder of that path: it means /usr/app/dbt doesn’t exist in the container, because the volumes lines are still commented out or DBT_PROJECT_DIR was empty when you started the containers.
If you have a Windows machine and get the error Error response from daemon: i/o timeout. Go to Docker > Settings > General and enable the option Expose daemon on tcp://localhost:2375 without TLS