Next.js binds the address HOSTNAME names; docker sets HOSTNAME to the container's id, so studio answered only on its network address while its image's health check asks localhost, and it read unhealthy while working. HOSTNAME=:: as the upstream compose file sets it.