title: Local Wordpress env with Docker Compose - cURL error 7: Failed to connect to localhost port 8080: Connection refused
body: <p>I am trying to set up a local Wordpress environment using Docker Compose for the first time. I am currently able to access my Wordpress instance on <code>localhost:8080</code> and have the files mapped locally.</p>
  
  <p>I purchased a theme, added it to <code>wp-content/themes</code>, and was then prompted to install some required plugins for it. When I click <code>Install</code>, this is the error I receive:</p>
  
  <p><code>Download failed. cURL error 7: Failed to connect to localhost port 8080: Connection refused</code></p>
  
  <p>Here is my configuration file:</p>
  
  <pre><code>version: "2"
  
  services:
    my-wpdb:
      image: mariadb
      ports:
        - "8081:3306"
      environment:
        MYSQL_ROOT_PASSWORD: password
    my-wp:
      image: wordpress:latest
      volumes:
        - ./:/var/www/html
      ports:
        - "8080:80"
      links:
        - my-wpdb:mysql
      environment:
        WORDPRESS_DB_PASSWORD: password
  </code></pre>
  
  <p>Probably a simple fix, but I can't seem to figure it out. Thanks!</p>