As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
alfresco-global.properties always reset the setting in dockerize container alfresco community 7.2
That's expected as whenever you restart the container the base image is used to deploy the repository unless you copy the your custom alresco-global.properties changes via DockerFile to the base image and build a custom image.
You need to use a custom DockerFile and docker-compose.yml in combination. See the example outlined here:
https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-global-properties-location/m-p/307802/highlight/true#M24653
or
https://github.com/AlfrescoArchive/acs-community-deployment/issues/131#issuecomment-691300550