#13033·portainer

COMPOSE_PROFILES incorrect.

Author: zagreo-labCreated Jan 23, 2026Updated Sep 24, 2026
Labelskind/bugbug/need-confirmation

Before you start please confirm the following.

  • Yes, I've searched similar issues on GitHub.
  • Yes, I've checked whether this issue is covered in the Portainer documentation.

Problem Description

COMPOSE_PROFILES with multiple profiles does not run, per example: COMPOSE_PROFILES=1 -> actives profile 1 COMPOSE_PROFILES=* -> actives profile 1 and 2 COMPOSE_PROFILES=1,2 -> does not active any profiles

Expected Behavior

COMPOSE_PROFILES should active a list of profiles, separated by comma

Actual Behavior

COMPOSE_PROFILES doe not active any profile with a list of profiles

Steps to Reproduce

  1. create a stack
  2. create the Environment variables
  3. write COMPOSE_PROFILES=1,2
  4. deploy the stack
  5. profiles 1 and 2 are not activated

Portainer logs or screenshots

No response

Portainer version

2.33.6

Portainer Edition

Business Edition (BE/EE) with 5NF / 3NF license

Platform and Version

docker 29.1.1 (API: 1.52)

OS and Architecture

linux x86_64 Ubuntu 22.04.5 LTS

Browser

No response

What command did you use to deploy Portainer?

bash

Additional Information

No response