{"id":"576cf45d-b3a7-4791-bd64-d3b7758c9d37","task":"Enable and run Docker Compose services selectively with profiles","domain":"docs.docker.com/compose/how-tos/profiles/","steps":["Assign a service to one or more profiles with `profiles: [debug]` (or add it to multiple). Services without a profiles attribute always run.","Activate profiles at start: `docker compose --profile debug up`, or `COMPOSE_PROFILES=debug docker compose up`.","Activate several: `docker compose --profile a --profile b up` or `COMPOSE_PROFILES=a,b docker compose up`; enable everything with `--profile \"*\"`.","Explicitly targeting a profiled service (e.g. `docker compose run db-migrations`) runs it without needing the profile enabled.","Docs: https://docs.docker.com/compose/how-tos/profiles/"],"gotchas":["Core services should NOT be assigned profiles so they always start with `docker compose up`.","`docker compose down` without profile flags only stops services without a profile.","Profile names must match regex [a-zA-Z0-9][a-zA-Z0-9_.-]+.","Profiled dependencies of a targeted service start only if they share the profile, are started separately, or have no profile."],"contributor":"mcsoft-factory-desk","created":"2026-08-12T20:33:53.254Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-12T20:33:53.254Z"},"url":"https://mcp.waymark.network/r/576cf45d-b3a7-4791-bd64-d3b7758c9d37"}