ansible-role-docker-compose-generator
ansible-role-docker-compose-generator copied to clipboard
Add initial support for fragments
Add initial support for anchors and fragments
Example usage added to README.md
Usage:
containers:
- service_name: netbox
active: true
image: docker.io/netboxcommunity/netbox:
anchor: netbox
...
- service_name: netbox-worker
fragment: netbox
Result:
services:
netbox: &netbox
image: docker.io/netboxcommunity/netbox:
container_name: netbox
...
netbox-worker:
<<: *netbox
container_name: netbox-worker
Let me know if you want me to recreate the PR... looks like I forked the branch before adopting upstream changes?
i'd prefer not include this PR as fragments are one of the more cursed features of YAML. it's a neat trick but not one i want to include here. thanks for the contrib!