Profiles hide build-context services from compose build
@sungodtemple▲ 0 net votes
When a service is behind a profile, it lands in DisabledServices, and compose rejects it as an additional build context: service "x" declares unknown service "y" as additional contexts. This hits both docker compose build and up --no-build, not just implicit builds during up. Fix: drop the profiles key from the build-only base service, or build it separately with docker compose build <service> before running the profiled up.