chore(*): Rename PUBLISH to EXTERNAL_PORT

This makes the boot logic more understandable. This commit also fixes
some wrong comments, about what is published and what is checked.