Support `--profile` flag in "Compose Path" option for compose deployment
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37.4k
- Forks
- 3k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 73
Description
What problem will this feature address?
Background:
When one compose file supports multiple service configurations, the docker compose spec recommends profile groups to specify which services should run in which contexts.
Problem:
Dokploy supports this call signature already, but doesn't auto-populate discovered services under the "domains" tab.
Describe the solution you'd like
Dokploy would identify the active --profiles as it parses the compose file, so that the services dropdown list is in sync with the run command.
Describe alternatives you've considered
Dokploy could simply show all services present in the dockerfile, with warning text saying something like "CLI flags detected in compose path; these services may not be correct". This still has less margin for user error than a complete freeform services field enabled in #2273
Additional context
This situation arises when docker compose apps can optionally build on either the CPU or GPU, but not both:
# Snippet from docker-compose.yml
services:
cpu-image:
build: ...
profiles: [cpu]
gpu-image:
extends: cpu-image
runtime: nvidia
profiles: [gpu]
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["0"]
capabilities: ["gpu"]
So that users can run docker compose --profile gpu up for respective app and hardware.
Will you send a PR to implement it?
Maybe, need help
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The relevant entry points are the Compose Path option and the domains tab; start by tracing how the compose file is parsed and how its services populate the dropdown. Done means active --profile values are honored by the service list and match the docker compose run command, including the CPU/GPU example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, typescript
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100