Doesn’t work with simple Docker Compose example
-
Hey there, I’d really love to get this plugin to work, but I’m not having any luck.
Here’s a docker-compose.yml file:
services:
minimal-db:
container_name: minimal-db
image: mysql:9
user: "1000:1000"
volumes:
- /Users/test/minimal-db/data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'sekrit'
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
security_opt:
- seccomp=unconfined
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 5s
retries: 10
minimal-wordpress:
container_name: minimal-wordpress
depends_on:
- minimal-db
ports:
- '8080:80'
image: wordpress:latest
user: "1000:1000"
restart: always
volumes:
- /Users/test/minimal-wordpress:/var/www/html/wp-content
environment:
WORDPRESS_DB_HOST: minimal-db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpressIf you run
docker-compose up, MySQL and WordPress will boot up, and you can continue the simple installation flow. Then add the Simply Static plugin.Diagnostics will show that the permalink structure is not set. I set it to
/%permalink%(custom), and then reset the diagnostics. All diagnostics are then green.After that the, the activity log is just blank. If I click “Generate,” nothing happens. If I refresh I can briefly see “Waiting for new export…” appear but then disappear. Refreshing just changes the Pause/Cancel buttons back to “Generate”.
There are no HTTP errors in the browser dev tools. There are no errors in the Docker Compose log.
I’ve tried turning on Debug -> Use server-side cron job and running
curl -si http://localhost:8080/wp-cron.php, but that doesn’t do anything either.I even spent an hour with Cursor trying to inject PHP scripts and call functions directly. It tried to debug the queue, and even seemed to get an export working with my production site, but only 50/750 of the pages I needed were exported and it couldn’t figure out why.
Any ideas?
You must be logged in to reply to this topic.