我正在尝试通过Docker建立WordPress网站,而我在代理193.56.47.8:8080
后面。
当我使用运行状况检查插件进行检查时,这是我遇到的错误:
REST API availability: The REST API request failed due to an error. Error encountered: (0) cURL error 7: Failed to connect to 172.24.155.18 port 80: No route to host
我已经删除了所有其他插件和主题,并在wp-config.php
文件中进行了代理设置:
define('WP_PROXY_HOST', '193.56.47.8');
define('WP_PROXY_PORT', '8080');
define('WP_PROXY_USERNAME', 'xxxxxxxxxx');
define('WP_PROXY_PASSWORD', 'xxxxxxxxxx');
define('WP_PROXY_BYPASS_HOSTS', 'localhost, *.wordpress.org');
这是我的docker-compose.yml
:
wordpress:
image: wordpress
links:
- mariadb:mysql
environment:
- WORDPRESS_DB_PASSWORD=password
ports:
- "172.24.155.18:80:80"
volumes:
- ./code:/code
- ./html:/var/www/html
mariadb:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=wordpress
volumes:
- ./database:/var/lib/mysql
网站正在运行,但是我没有错过任何其他设置吗?
-centOS 7