Skip to content

compose up_args are inserted before the up command #1036

@deligatedgeek

Description

@deligatedgeek

Describe the Bug

When I define up_args in docker_compose they are inserted before the up command causing an error in the puppet run.
Example

 docker_compose { 'application':
    ensure        => present,
    up_args       => '--build',
  }
}

Produces the following line, which fails

docker compose -f /opt/app/docker-compose.yml -p config-webapp --build up -d --remove-orphans

Expected Behavior

The following line should be generated and executed

docker compose -f /opt/app/docker-compose.yml -p application up -d --build --remove-orphans

Steps to Reproduce

Steps to reproduce the behavior:
Use the above compose code

Environment

  • Version [7.37.2]
  • Platform [Ubuntu 24.04]

Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions