我正在为我的yii1应用程序使用docker。一切都正常。但在我登录我的应用程序之后。Apache/2.4.53 (Debian) Server at localhost Port 8082version: '3' web:root@81055c285fdc:/var/www/html#
我在文件main.php中使用了正确的主机作为
我了解到我需要一个用于apache http服务器的容器和另一个用于php脚本的容器。我搜索了很多,但仍然不明白它是如何工作的。我现在知道的是,我应该求助于docker网络,只要它们在同一个网络中,它们就应该相互通信。Remember from
earlier, we named our container app in the Docker Compose file and linked it to the webcontainer; here, we can just reference that c