title: Can't overwrite file in docker compose
body: <p>I'm using docker compose to set up a payara server and need to overwrite the domain.xml file. I'm currently doing it through </p>
  
  <p><code>volumes:
     - './domain.xml:/opt/payara41/glassfish/domains/domain1/config/domain.xml'
  </code>
  but when i compose it with <code>docker-compose up</code> it keeps saying that it could not rename domain.xml to domain.xml.bak. Is there any way i can get permissions to overwrite it or make sure the rename works ?</p>