title: Docker Compose profiles feature: deprecated?
body: <p>Docker Compose online guides describe the <strong>profiles</strong> feature that allows to run different containers described in the same configuration file just using different profiles with option <code>--profile</code> : <a href="https://docs.docker.com/compose/reference/overview/" rel="noreferrer">here</a> (in short) and <a href="https://docs.docker.com/compose/profiles/" rel="noreferrer">here</a> (in details).</p>
  <p>The <code>profiles</code> compose file option (describing for which profiles a service should run) is mentioned in <a href="https://docs.docker.com/compose/compose-file/compose-file-v3/#profiles" rel="noreferrer">compose file 3.0 format specification</a> without any other version restrictions, so it looks like it should work for all 3.* versions.</p>
  <p>But the instances of Docker Compose that I have installed on my Windows workstation and on my dev server under CentOS 7 (both has version <strong>1.27.4</strong>, build <strong>40524192</strong>) just doesn't have this option in their CLI. The <code>docker-compose --help</code> command shows no <code>--profile</code> option in its output, and it really doesn't work when I try it. Instead, there are <code>--context</code> and <code>--env-file</code> options (that are absent in the online guide), but it looks like both are something different.</p>
  <p>Does anyone know what's happened with Docker Compose profiles? Are this feature removed (I was unable to find anything about it)? Or are they available in different mode or something (I know that some options work only for <code>docker stack</code>, not for <code>docker-compose</code>, but the former one doesn't have it too neighter in online descrition nor in <code>--help</code> output)? Or do I do something wrong?</p>