2 ms·
The application I'm trying to develop is just a normal compose based setup. I'm trying to achieve the flexibility that helm gives us for Kube with docker compos
by arun_bala 8y ago
The application I'm trying to develop is just a normal compose based setup. I'm trying to achieve the flexibility that helm gives us for Kube with docker compose and need pointers in that direction.
My current approach was - given a set of containers - enable / disable flags for them if they exist / don't exist and then create a compose file and then have conditionals in it and have ansible deploy the containers ->
# vars/containers.yml
list_of_containers:
- container1
- container2
# docker-compose.yml
{% if container1_enabled %}
container1:
image: container1
port: port1:port2
....
{% endif %}