Skip to content

Pass arguments to service containers #2276

@garciasdos

Description

@garciasdos

Describe the enhancement
Related to https://github.com/actions/runner/discussions/1872, I haven't found any solution or documentation about how to pass arguments to service containers.

I've seen the options argument, but this is only passing the argument to the inside docker container create command. Is there a way to do this? if not, are there any plans to implement it?

Code Snippet

   services:
       mockoon:
         image: mockoon/cli:2.1.0
         ports:
           - 4010:4010
         volumes:
           - ./mock:/data
         container-options: >- # or something like this 🤔
           --data /data/mockoon.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions