Australia and Germany are deepening defence and security cooperation as concerns grow over Iran, Ukraine and instability in the Indo-Pacific.