As I mentioned, wordpress is running on the main domain.
If I understood correctly, the other NGIX works in the container together with wordpress.
I followed this tutorial: How To Install WordPress With Docker Compose | DigitalOcean
If I run the netstat -tulnp command, this is what I get:
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