title: Enable mysqli in docker container
body: <p>I build some containers with the following code:</p>
  
  <pre><code>version: '3'
  services:
    db:
      image: mysql:5.7
      environment:
        MYSQL_ROOT_PASSWORD: test
        MYSQL_DATABASE: test
        MYSQL_USER: test
        MYSQL_PASSWORD: test
      ports:
        - "9906:3306"
    web:
      image: php:7.3-apache
      container_name: php_web
      depends_on:
        - db
      volumes:
        - ./:/var/www/html/
      ports:
        - "8100:80"
  </code></pre>
  
  <p>This works like a charm. The only problem what I have is that I need the mysqli module. This one is not included in the php:7.3-apache image.</p>
  
  <p>So what I tried was to add this in the dockerfile:</p>
  
  <pre><code>FROM php:7.3-apache
  RUN docker-php-ext-install mysqli
  </code></pre>
  
  <p>That is not working. So how can I add the mysqli module to my container?</p>