title: Docker wordpress multisite - what ports to expose?
body: <p>I'm trying to set up Wordpress multisite /as a network in a Docker container. From the docs, I understand that multisite only works with port 80 and 443.</p>
  <p>When I use port 8000 for the wpmu service as below, I can access wordpress</p>
  <p><strong>docker-compose.yml</strong></p>
  <pre><code>version: '3.3'
  
  services:
    db:
      image: mysql:5.7
      volumes:
        - db_data:/var/lib/mysql
      restart: always
      ports:
      - &quot;3306:3306&quot;
      environment:
        MYSQL_ROOT_PASSWORD: root_password
        MYSQL_DATABASE: wpmu_db
        MYSQL_USER: wpmu_db_user
        MYSQL_PASSWORD: wpmu_db_user_password
  
    phpmyadmin:
      depends_on:
        - db
      image: phpmyadmin/phpmyadmin
      restart: always
      ports:
        - &quot;8080:80&quot;
      environment:
        PMA_HOST: db
        MYSQL_ROOT_PASSWORD: root_password
  
    wpmu:
      depends_on:
        - db
      image: wordpress:latest
      ports:
        - &quot;8000:80&quot;
      restart: always
      volumes:
        - &quot;.wp/:/var/www/html&quot;
      environment:
        WORDPRESS_DB_HOST: db:3306
        WORDPRESS_DB_USER: wpmu_db_user
        WORDPRESS_DB_PASSWORD: wpmu_db_user_password
        WORDPRESS_DB_NAME: wpmu_db
        WORDPRESS_CONFIG_EXTRA: define('WP_ALLOW_MULTISITE', true );
  
  volumes:
    db_data: {}
  </code></pre>
  <p>When I navigate to <code>http://localhost:8000/wp-admin/network.php</code>, I get</p>
  <h1>Create a Network of WordPress Sites</h1>
  <blockquote>
  <p>ERROR: You cannot install a network of sites with your server address.</p>
  </blockquote>
  <p><em>You cannot use port numbers such as :8000.</em></p>
  <p>If I change the port from 8000 to 80 or 443, the service no longer works (I get a &quot;this page isn't working - localhost didn't send any data&quot; and a 404 respectively).</p>
  <p>Any idea how to set the ports for multisite to work?</p>