Best Practices to setup docker container with internal configuration files

Hello, everyone,
I’ve played a lot with ansible and docker. The whole thing works really well, except if I want to configure files etc. internally in the container.
One possibility is to mount the internal configuration files per docker volume into the host and then adapt the configurations by ansible. Alternatively, I could copy the configurations from the host to the container via docker cp. In my opinion, both options are not really clean.

I could still imagine connecting to the container via an ansible and then performing the configurations. However, then always two runs are necessary.

How do you concern yourself with that? Do you possibly already create a configured image by ansible-container? Or are there any other ways I don’t know?

Thank you very much,
Flo