Improved support for Stack service profiles #1240

Closed
opened 2026-03-22 17:15:56 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @cyndane31 on GitHub (Jun 17, 2025).

I currently use compose service profiles to control the webui's for a few different backend services, namely my various databases. As far as I can tell, the only way to control deployment of a specific profile is using Extra Args to specify --profile=xxx. A UI element to control the deployed profile near the rest of the control elements would be a nice small QoL improvement.

Originally created by @cyndane31 on GitHub (Jun 17, 2025). I currently use compose service profiles to control the webui's for a few different backend services, namely my various databases. As far as I can tell, the only way to control deployment of a specific profile is using Extra Args to specify --profile=xxx. A UI element to control the deployed profile near the rest of the control elements would be a nice small QoL improvement.
Author
Owner

@nano9g commented on GitHub (Jun 20, 2025):

I was just looking into this and would also appreciate native profile support. For anyone trying to get this to work in the meantime, here's what I discovered.

Extra Args didn't work (for me, at least)

Two reasons:

  1. It appends --profile xyz after up, which Docker Compose doesn't like (unknown flag: --profile).
  2. Even if Compose wasn't erroring on up, Extra Args are only for the up command, and Compose also wants you to specify the profile as part of the down command.

COMPOSE_PROFILES seems to be a decent workaround

Since Compose takes anything from the Environment section of Komodo into its own environment, this can be used in lieu of command line args. It also sidesteps both of the Extra Args problems. Example:

COMPOSE_PROFILES=server

or for multiple profiles:

COMPOSE_PROFILES=server,db
@nano9g commented on GitHub (Jun 20, 2025): I was just looking into this and would also appreciate native profile support. For anyone trying to get this to work in the meantime, here's what I discovered. #### Extra Args didn't work (for me, at least) Two reasons: 1. It appends `--profile xyz` after `up`, which Docker Compose doesn't like (`unknown flag: --profile`). 2. Even if Compose wasn't erroring on `up`, Extra Args are only for the `up` command, and Compose also wants you to specify the profile as part of the `down` command. #### `COMPOSE_PROFILES` seems to be a decent workaround Since Compose takes anything from the **Environment** section of Komodo into its own environment, this can be used in lieu of command line args. It also sidesteps both of the Extra Args problems. Example: ``` COMPOSE_PROFILES=server ``` or for multiple profiles: ``` COMPOSE_PROFILES=server,db ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#1240