Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Configurable 'instanceName' (-p project-name) #117

@pme123

Description

@pme123

docker-compose has this option:

-p, --project-name NAME     Specify an alternate project name
                              (default: directory name)

sbt-docker-compose generates a random instance name for this option:

    //Generate random instance name so that it won't collide with other instances running and so that it can be uniquely
    //identified from the list of running containers
    val instanceName = generateInstanceName(state)

I would like to add the possibility to add a configuration to set a static name.

For example:

composeInstanceName := // Specify a docker-compose project-name. By default a random instance name is generated - so that it won't collide with other instances running and so that it can be uniquely

composeInstanceName := "DEV"

This creates images like DEV/postgres_1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions