No internet connection
  1. Home
  2. Support

How to use with a Docker compose setup?

By Leon Stafford @leonstafford2018-12-17 08:03:24.151Z

With a Docker compose file like below, how should I setup my export options?

version: '3.3'

services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
volumes:
    db_data:
  • 1 replies
  1. Leon Stafford @leonstafford2018-12-17 08:09:37.801Z

    After running docker compose up, completing the WP setup and installing the WP2Static plugin, the following settings have been tested to work fine without any other configuration needed:

    Depending on your site's theme, post and page URLs, you may need to adjust your Permalinks as below to get things working. This is an issue which should be resolved in a future version.