title: Docker PHP: pthreads and fpm
body: <p>I have project running on Apache and PHP7 to handle web requests (UI, Forms, etc), it's build on Symfony components, if that makes any difference.</p>
  
  <p>In addition to this, I have a console command that is using <code>pthreads</code> to sent emails concurrently (for speed reasons).</p>
  
  <p>Would like to move the whole project on Docker (transitioning all other projects) and I'm not sure how to do that. There is a <code>php-zts</code> image variant, but that won't work with Nginx (or Apache). </p>
  
  <p>One option I was considering is to have 2 separate php containers (one for fpm and one for zts), but I don't know how the fpm container will call a command on the zts container.</p>
  
  <p>Any ideas/pointer would be appreciated.</p>