正如我所提到的,wordpress 运行在主域名上。
如果我理解正确的话,另一个 NGIX 与 wordpress 一起在容器中运行。
我遵循了本教程:How To Install WordPress With Docker Compose | DigitalOcean
如果我运行 netstat -tulnp 命令,我会得到以下结果:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 419/systemd-resolve
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1192/docker-proxy
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 463/sshd: /usr/sbin
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1179/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 463/sshd: /usr/sbin
udp 0 0 127.0.0.53:53 0.0.0.0:* 419/systemd-resolve