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

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

Open
pme123 opened this issue Apr 8, 2019 · 0 comments
Open

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

pme123 opened this issue Apr 8, 2019 · 0 comments

Comments

@pme123
Copy link

pme123 commented Apr 8, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant