title: Docker - Full functional WordPress (WP+DB+PHPMyAdmin)
body: <p>I try to have a full wordpress service working on a container with mariaDB and PHPMyAdmin. I can only find outdated (like v1 docker-compose) help online.</p>
  
  <p>I try with this docker-compose.yml file :</p>
  
  <p>Edited files:</p>
  
  <pre><code>version: '2'
  services:
    wordpress:
      image: wordpress:latest
      networks:
        - front
        - back
      ports:
        - 8080:80
      environment:
        WORDPRESS_DB_PASSWORD: examplepass
        WORDPRESS_DB_NAME: wpdb
        WORDPRESS_TABLE_PREFIX: wp_
        WORDPRESS_DB_HOST: wordpress_db
      volumes:
        - ./wordpress-data:/var/www/html
        - ./php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
    wordpress_db:
      image: mariadb:latest
      environment:
        MYSQL_ROOT_PASSWORD: examplepass
      volumes:
        - wordpress-db-data:/var/lib/mysql
      networks:
        - back
    phpmyadmin:
      image: phpmyadmin/phpmyadmin
      networks:
        - back
      ports:
        - 8181:80
  volumes:
      wordpress-db-data:
        driver: local
  networks:
    front:
    back:
  </code></pre>
  
  <p>I can hit PHPMA on 8181 but I cannot hit WP on 8080.</p>
  
  <p>Any idea ?</p>
  
  <p>EDIT: I made some change. WP is running now but I cannot connect my user root/examplepass to PMAdmin.
  I have an error like this 
  <code>#2002 - php_network_getaddresses: getaddrinfo failed: Name does not resolve &amp;mdash; The server is not responding (or the local server's socket is not correctly configured).</code></p>