What are best practices to override complete sections using docker-compose?
According to this documentation it does not seem to be possible to override complete sections in docker-compose by using different docker-compose files.


  If both files are present on the same directory level, Compose
  combines the two files into a single configuration.
  
  The configuration in the docker-compose.override.yml file is applied
  over and in addition to the values in the docker-compose.yml file.