Thank you for reading the post and for your feedback!
First, the error, which indicates your shares (there are two — pyspark and postgres) are not set up right. You only mentioned setting up postgres? The one you didn’t mention sounds like the problem (pyspark). Did you set this up correctly, based on your local environment ($PWD/work:/home/$USER/work)? To prove it is a share issue, comment out the two `volume:` entries in the stack.yml file and redeploy. It should work without shares.
I noticed you use sudo for Docker? That shouldn’t be necessary if Docker is set up correctly, FYI. See: https://docs.docker.com/install/linux/linux-postinstall/