Skip to content

Instantly share code, notes, and snippets.

@schuhwerk
Last active March 21, 2025 19:53
Show Gist options
  • Save schuhwerk/5e9dbbc491095cfc7436fa55858e7dfc to your computer and use it in GitHub Desktop.
Save schuhwerk/5e9dbbc491095cfc7436fa55858e7dfc to your computer and use it in GitHub Desktop.
Docker & Spaces

Make sure the path you are cloning this in does not have spaces (like "New Folder")

git clone https://github.com/dol-lab/bedrock-multisite-docker
cd bedrock-multisite-docker
mkdir bedrock
git clone https://github.com/dol-lab/spaces.git bedrock
# checks/installs dependencies
bash ./docker/scripts/install.sh

Make sure "composer install" has run in ./bedrock, run it manually if it does not work with install.sh

Set the following variables in your .env

DB_HOST=mariadb
WP_HOME=http://spaces.test
WP_SITEURL=http://spaces.test/wp
DOMAIN_CURRENT_SITE=spaces.test

Set rewrite-rules for your hosts-file. Localhost does not work with subdirectories (i guess).

  • 127.0.0.1 -> spaces.test
bash ./docker/scripts/setup-network-reset.sh
bash ./docker/scripts/wp-cli.sh plugin activate spaces-core
bash ./docker/scripts/wp-cli.sh plugin activate spaces-setup

Access http://spaces.test in browser. Login with admin admin. phpMyAdmin is http://spaces.test:82.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment