faradayio / cage

Develop and deploy complex Docker applications
http://cage.faraday.io
Apache License 2.0
307 stars 26 forks source link

Implement `extends` #58

Open emk opened 7 years ago

emk commented 7 years ago

At the moment, cage really doesn't have any particularly good support for extends.

We could support this as follows:

extends:
  file: "templates/webapp.yml"
  service: "webapp"

Optionally, we could also have support for overriding templates:

The trick would be to merge these two files before we use them as input to the extends. This would allow us to handle cases where we use one image in development, and a different image in production.

seamusabshere commented 7 years ago

heh, no more extends in latest version of docker-compose.yml :)