Closed
Description
I am deploying some Wordpress instances, each is a network of sites.
The wp-cli image is based on alpine, only. the Apache image is based on Debian, only. the FPM uses both Debian and alpine, but that requires another HTTP container or configuring FCGI in the LB instead of a simple proxy.
When using the wp-cli on a volume from an Apache image, you can't save the changes into the wp-config.php file, because the www-data user has different uids on alpine and debian.
So I suggest to implement the following (I thing the first is the simplest):
- wp-cli should be available on all Wordpress images, so using
docker-compose exec wordpress multisite-install ...
will be more efficient than having a separate service for the cli. - wp-cli should have a debian based flavor where www-data has the same uid like the wordpress image.
Here is my current (initial) setup: https://github.com/uda/docker-wp-ms
Metadata
Metadata
Assignees
Labels
No labels