The postgres container setup is using postgres as it’s name (and therefore hostname), not invoices_control_db.
postgres
invoices_control_db