title: MariaDB and phpMyAdmin containers communication
body: <p>How can i connect to MariaDB in localhost container?</p>
  
  <p><strong>phpMyAdmin</strong></p>
  
  <pre><code>version: '3'
  services:
    pma:
      image: phpmyadmin/phpmyadmin
      ports:
        - '80:80'
      environment:
        - PMA_ARBITRARY=1
      restart: always
  </code></pre>
  
  <p><strong>MariaDB</strong></p>
  
  <pre><code>version: '3'
  services:
    mariadb:
      image: mariadb
      ports:
        - '3306:3306'
      environment:
        - MYSQL_ROOT_PASSWORD=toor
      volumes:
        - '.database:/var/lib/mysql'
  </code></pre>
  
  <p>I've tried to connect via PMA to local MariaDB service, but with no luck. I'd like to avoid explicitly link PMA and MariaDB containers, preserving arbitrary server connection (e.g. external server).</p>