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

Feature Request: compose_v2 inline definition #829

Closed
TheOneValen opened this issue Apr 1, 2024 · 1 comment · Fixed by #832
Closed

Feature Request: compose_v2 inline definition #829

TheOneValen opened this issue Apr 1, 2024 · 1 comment · Fixed by #832
Labels
docker-compose-v2 Docker Compose v2 enhancement New feature or request

Comments

@TheOneValen
Copy link

SUMMARY

Please allow an inline definition of the compose content instead of using a project_src like with V1.

ISSUE TYPE
  • Feature as in V1
COMPONENT NAME
  • Same as V1?
ADDITIONAL INFORMATION

for example:

    - name: Start flask project with inline definition
      community.docker.docker_compose_v2:
        project_name: flask
        definition:
          version: '2'
          services:
            db:
              image: postgres
            web:
              build: "{{ playbook_dir }}/flask"
              command: "python manage.py runserver 0.0.0.0:8000"
              volumes:
                - "{{ playbook_dir }}/flask:/code"
              ports:
                - "8000:8000"
              depends_on:
                - db
      register: output
@TheOneValen TheOneValen changed the title compose_v2 inline definition Feature Request: compose_v2 inline definition Apr 1, 2024
@felixfontein felixfontein added enhancement New feature or request docker-compose-v2 Docker Compose v2 labels Apr 2, 2024
@felixfontein
Copy link
Collaborator

I've started implementing this in #832.

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