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 do wordpress dev work on Docker in Windows 10 - I'd really like to get this to work!
Installed the plugin,
define( 'WP_ENVIRONMENT_TYPE', 'local' ); in wp-config
ray("Hello World");
Nothing.
I've tried adding in the docker's "extra_hosts" but no joy. I also tried the default port and the same port on the Wordpress container. I'm not getting any errors, so the plugin is working - just the app not speaking to Wordpress/Docker, it seems.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I do wordpress dev work on Docker in Windows 10 - I'd really like to get this to work!
Installed the plugin,
define( 'WP_ENVIRONMENT_TYPE', 'local' ); in wp-config
ray("Hello World");
Nothing.
I've tried adding in the docker's "extra_hosts" but no joy. I also tried the default port and the same port on the Wordpress container. I'm not getting any errors, so the plugin is working - just the app not speaking to Wordpress/Docker, it seems.
My docker-compose file is:
version: '3'
services:
database:
image: mysql:5.7
command:
- "--character-set-server=utf8"
- "--collation-server=utf8_unicode_ci"
ports:
- "3308:3306" # ()
restart: on-failure:5
environment:
MYSQL_USER: wordpress
MYSQL_DATABASE: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_ROOT_PASSWORD: wordpress
wordpress:
depends_on:
- database
image: wordpress:latest
ports:
- "8001:80" # ()
restart: on-failure:5
volumes:
- ./public:/var/www/html
environment:
WORDPRESS_DB_HOST: database:3306
WORDPRESS_DB_PASSWORD: wordpress
extra_hosts:
- "host.docker.internal:host-gateway"
phpmyadmin:
depends_on:
- database
image: phpmyadmin/phpmyadmin
ports:
- 8081:80 # (*)
restart: on-failure:5
environment:
PMA_HOST: database
Any thoughts ? :)
Beta Was this translation helpful? Give feedback.
All reactions