You can also replace common or shared attributes between your configs using env files: https://docs.docker.com/compose/environment-variables/set-environment-variables/#use-the-env_file-attribute
Things I put there: UIDs, GIDs, TZ, shared mount paths, etc.
This is the best: https://github.com/sahib/rmlint