title: How to enable LDAP on a dockerized Wordpress?
body: <p>I have this container that I ran with a <code>docker-compose.yml</code> file. </p>
  
  <pre><code>version: '3'
  services:
  
      db:
       &lt;...&gt;
  
      wordpress:
        depends_on:
          - db
        image: wordpress:latest
        ports:
          - "8000:80"
        restart: always
        environment:
          WORDPRESS_DB_HOST: db:3306
          WORDPRESS_DB_USER: wordpress
          WORDPRESS_DB_PASSWORD: wordpress
  </code></pre>
  
  <p>I need to <a href="http://php.net/manual/en/ldap.installation.php" rel="nofollow noreferrer">enable LDAP on PHP</a> but I really can't find out how to complete the steps explained in the tutorial. </p>
  
  <blockquote>
    <p>You will need to use the <strong>--with-ldap[=DIR]</strong> configuration option when
    compiling PHP to enable LDAP support.</p>
  </blockquote>
  
  <p>How am I supposed to do this on a running container ? Should this be done before running <code>docker-compose up</code> if so, which environment configuration am I supposed to use ? </p>