Closed goldyfruit closed 7 months ago
With docker_compose, we had the capability to use multiple docker-compose.yml files which is very handy when you want to organise pretty large composition.
docker_compose
docker-compose.yml
community.docker.docker_compose: project_src: "{{ _ovos_installer_working_directory }}/{{ _ovos_installer_project_name }}/compose" project_name: "{{ _project_name }}" files: - compose1.yml - compose2.yml - compose3.yml pull: true remove_orphans: "{{ ovos_installer_docker_compose_remove_orphans }}" remove_images: "{{ ovos_installer_docker_compose_remove_images }}" remove_volumes: "{{ ovos_installer_docker_compose_remove_volumes }}"
This capability is missing from docker_compose_v2 but its supported by docker compose CLI.
docker_compose_v2
docker compose
-f, --file stringArray Compose configuration files
https://github.com/ansible-collections/community.docker/pull/739#issuecomment-1902704433
I created #775 to implement this. Could you please try out whether it works for you? Thanks.
Thanks @felixfontein :+1:
SUMMARY
With
docker_compose
, we had the capability to use multipledocker-compose.yml
files which is very handy when you want to organise pretty large composition.This capability is missing from
docker_compose_v2
but its supported bydocker compose
CLI.ISSUE TYPE
COMPONENT NAME
docker_compose_v2
ADDITIONAL INFORMATION
https://github.com/ansible-collections/community.docker/pull/739#issuecomment-1902704433