Run on a mac
brew cask install XQuartz
Then log out and log in to init XQuartz
Open XQuartz using command
open -a Xquartz
Go to Preferences and enable "Allow connections from network clients" in "Security" tab
Then you should actually enable connection from docker to XQuartz by running
xhost +
brew install socat
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
https://docs.docker.com/desktop/mac/install/
Open terminal an go to this project directory
docker-compose up