-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup local docker-compose install #4
Comments
Using Windows install via WSL2 (Ubuntu) Following steps here: Setup .env file as specified. Ran
Connected to WP container and linked in the fixed location of the wp-includes: After this could start WP. However
Added a couple of changes to the docker-compose.yml based on Trying the sample WP CLI command failed stating that a path needed to be specified. However adding the 'command' line specified there still did not start. Next tried running an updated docker-compose command:
Noticed that the wp-app/wp-config.php contained a different DB password from my .env, so updated it to match. However after docker-compose down/up it still failed. The wp-config.php also has 'db' as the DB_HOST setting, so not clear why it is trying to connect to 'mysql' instead. However afterwards going to localhost in browser took me to the WP install menu: |
Seems I just needed to copy the 'environment' section from the wp section to the wpcli section in the docker-compose.yml, and then the WP CLI commands work as expected. |
I don't know if the version.php is a WordPress error. It doesn't come with that file - was there a plugin in the install? WPCLI doesn't run normally, because it's not something that turns on, and persists. In that file you linked, they include an install command to make WordPress install on compose-up, which is cool. That would eliminate step 5 in my setup. There is a lot going on on these docker setups, and I hope it runs smoother for you next time Thanks for reporting! |
No problem, I figured it could be a bit involved getting it to run in a different environment than you used. Here's the commands I wound up needing for the composer and npm install of the theme:
|
Working through the docker-compose setup instructions in the current dockerinstall branch.
The text was updated successfully, but these errors were encountered: