API, nginx frontend and PostgreSQL as separate services: how they find each other and which one gets the domain.