Multisite support?
Closed this issue · 2 comments
tcober commented
This is a great project but I have no idea where the wp-config.php lives so not sure how to piece together multisite.
northosts commented
wp-config.php
lives only inside the docker container. you can temporarily change it directly by logging in to the wp-container:
docker exec -ti wp.wuxt bash
Better option is to use the the WORDPRESS_CONFIG_EXTRA environment variable in the docker-compose.yml, like below: everything you put there will be included in the wp-config.php. Uncomment/change what you need:
WORDPRESS_CONFIG_EXTRA: |
/* Site URL */
define('WP_HOME', 'https://wordpress.example.com'); # <-- CHANGEME
define('WP_SITEURL', 'https://wordpress.example.com'); # <-- CHANGEME
/* Developer friendly settings */
# define('SCRIPT_DEBUG', true);
# define('CONCATENATE_SCRIPTS', false);
# define('WP_DEBUG', true);
# define('WP_DEBUG_LOG', true);
# define('SAVEQUERIES', true);
/* Multisite */
# define('WP_ALLOW_MULTISITE', true );
# define('MULTISITE', true);
# define('SUBDOMAIN_INSTALL', false);
# define('DOMAIN_CURRENT_SITE', 'wordpress.example.com'); # <-- CHANGEME
# define('PATH_CURRENT_SITE', '/');
# define('SITE_ID_CURRENT_SITE', 1);
# define('BLOG_ID_CURRENT_SITE', 1);
northosts commented
Closing this and hope it's answered!