I think it would be better if the service option to be optional.
compose would look through extends' file and find if there's a service with the same name of the service where the extends option is.
#docker-compose.ymlweb:
extends:
file: common-services.yml#service: webenvironment:
- DEBUG=1cpu_shares: 5
#common-services.ymlweb:
build: .ports:
- "8000:8000"volumes:
- "/data"
I think it would be better if the service option to be optional.
composewould look through extends' file and find if there's a service with the same name of the service where the extends option is.