You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have MULTISITE: 'true' defined in my docker-compose.yml. On the first start, multisite is enabled correctly. On subsequent starts I get a "The network already exists" message in the output, but wp-config.php is generated without the multisite constants, so WordPress admin tells me multisite support is not enabled.
Windows 10 20H2 (OS Build 19042.867)
Docker version 20.10.5
Workaround: run docker-compose down -v and start with a blank database every time (not ideal).
docker-compose.yml
version: '3'services:
wordpress:
cap_add:
- SYS_ADMINdevices:
- /dev/fuseimage: visiblevc/wordpress:latestports:
- 9000:80
- 44300:443volumes:
- ./plugins:/app/wp-content/plugins
- ./install-dev-plugins:/docker-entrypoint-initwp.d/install-dev-plugins
- ./custom-block-types:/app/wp-content/plugins/custom-block-typesenvironment:
DB_HOST: db # must match db service name belowDB_NAME: wordpressDB_PASS: root # must match belowURL_REPLACE: localhost:9000WP_DEBUG: 'true'MULTISITE: 'true'extends:
service: localConfigfile: docker-compose.local.ymldb:
image: mysql:5.7 # or mariadb:10volumes:
- data:/var/lib/mysqlenvironment:
MYSQL_ROOT_PASSWORD: rootvolumes:
data: {}
Overview
docker-compose down -v
and start with a blank database every time (not ideal).docker-compose.yml
docker-compose.local.yml
docker-compose up
outputThe text was updated successfully, but these errors were encountered: