Web development has devolved to the point where now you need 32 GB to view a Chinese take-out menu.
If you use Linux, then you're not stuck pre-dedicating a big block of RAM to a VM to run docker in, you're just using whatever the container is using.
Install htop/btop and be more conscious about what your machine is actually doing. Needing more than 32GB RAM to develop a website is absurd
If so my best advice is to not use Docker for day-to-day development; reverse-engineer the docker-compose.yml/etc and run what you'd run in containers locally.
As a web developer I've been getting away with doing this for almost a decade now. It's a one-time cost to review what containers the app needs and then map that to a native world (install Postgres/etc via homebrew, adjust the env vars, etc).
The only time I run Docker nowadays is when I actually need to work on the Dockerfile itself and need to test it locally.
Memory used by various apps:
docker VM take 8Gb for simple supabase images
Firefox take 5-8GB
BasedPyRight takes 2GB
Nextjs server takes 2GB