build: remove base docker compose files in favor of yml anchors (#3240)
Base docker compose files were used to reuse environment variables between services. The same can be done by using yaml anchors which makes the docker compose file self contained, making it easier to maintain.