ansible-role-docker-compose-generator
ansible-role-docker-compose-generator copied to clipboard
An Ansible role which procedurally generates docker-compose.yml files
Adds (very) basic support for docker networks to allow separation of services onto their own networks. Doesn't support any advanced options, but allows for simple creation and utilisation of networks.
This PR adds support for including local docker volumes in the docker compose file. I've also updated the readme to include an example implementation.
Added a few lines to support [the networks and networks aliases](https://docs.docker.com/compose/compose-file/compose-file-v2/#networks) configurations.
Add support for [user configuration](https://docs.docker.com/compose/compose-file/#user)
Add support for [healthcheck](https://docs.docker.com/compose/compose-file/compose-file-v2/#healthcheck) and [dependent conditions](https://docs.docker.com/compose/compose-file/compose-file-v2/#depends_on) This is a non-breaking change, and dependents can still be defined as they are currently - ``` containers: - service_name: unifi ... depends_on:...
Add initial support for anchors and [fragments](https://github.com/compose-spec/compose-spec/blob/master/spec.md#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...
Add the expose section of docker compose to allow exposing ports without binding them to the host. https://docs.docker.com/compose/compose-file/compose-file-v2/#expose
I've been making use of this role for a little while, but today found the need to define and use a custom network for my container. I noticed this wasn't...
Needed for Invidious (https://docs.invidious.io/installation/#docker-compose-method-production)
## Change Summary _First of all thanks for the idea of combining all compose files together! It's quite nice to be able to have one compose per machine with all...