The configuration in the template just uses a port definition of 80, which results in a randomly-assigned port when the container is started/restarted.
This makes it difficult to put Wordpress behind a reverse proxy, because the port is always changing. It would make more sense to allow the user to specify the port in the configuration, similar to how the DB password is defined.