Mount local docker

Hey, is there a tutorial on how to setup astro airflow locally so that DockerOperator works?

I found on the web that you need to mount - /var/run/docker.sock:/var/run/docker.sock, but im not sure how to do this in astro?
I tried adding this line to docker-compose.override.yml, but then I just get an error:

version: '3'
services:
  airflow:
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock  # Mount Docker socket

Thanks for the help