Skip to content

Add command

Sometimes you need to add one or more services to your Docker Compose configuration subsequently. For this you can use the add command of Compose Generator. It handles things like duplicate port assignments, service name collisions, Docker networking, etc. automatically for you.

Usage

Use the add command by executing:

$ compose-generator add [service-name]

Use the add command by executing:

$ compose-generator a [service-name]

Options

You can apply following options to the add command:

Option Short Description
--advanced -a Show questions for advanced customization
--detached -d To run the compose configuration after adding in detached mode.
--force -f Skip safety checks and delete all files that may exist.
--run -r To run the compose configuration after adding.