Intellij ide in docker? or spacemacs?

Looking for a decent ide to develop in, using a couple of docker images and docker-compose.
I found which could help installing /tmp/ide.tar.gz in a docker image. I would like to integrate this into my own project:, which uses docker-compose version 2. Anyone tried to use intellij in a docker-container with docker-compose version 2? Care to share your dockerfile + docker-compose.yml?
I did not get it working yet, thinking about forgetting about docker for until it maybe gets better documented / usable. Otherwise spacemacs maybe? With config in a volume, anyone?