Create compose file from running container

Hello,

is it possible to create a compose file from a running container? I played a little bit with the compose files and create a service with the files. And I also played with portainer to create services. Can I create e compose file from a service, which was created with portainer?

BR
Rene