Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple compose files with docker_compose_v2 module #772

Closed
goldyfruit opened this issue Jan 21, 2024 · 2 comments · Fixed by #775
Closed

Support for multiple compose files with docker_compose_v2 module #772

goldyfruit opened this issue Jan 21, 2024 · 2 comments · Fixed by #775
Labels
docker-compose-v2 Docker Compose v2 enhancement New feature or request

Comments

@goldyfruit
Copy link

goldyfruit commented Jan 21, 2024

SUMMARY

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.

  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.

  -f, --file stringArray           Compose configuration files
ISSUE TYPE
  • Feature Idea
COMPONENT NAME

docker_compose_v2

ADDITIONAL INFORMATION

#739 (comment)

@felixfontein
Copy link
Collaborator

I created #775 to implement this. Could you please try out whether it works for you? Thanks.

@goldyfruit
Copy link
Author

Thanks @felixfontein 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-compose-v2 Docker Compose v2 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants