Thanks for giving it a shot, Adrian. I'm scouring the Postgres source code looking for some inspiration around the error message "database system was interrupted". Let me know if you can think of anything else.
Oops. I used a dummy IP address in the yml file for privacy reasons. The actual IP addresses would be placed there in my setup. The pg_basebackup connection to the MASTER_PORT_5432_TCP___ADDR is successful, so I know that slave can connect to the master at least. But it just cannot open a streaming backup connection...
Yeah, that would have been too easy:) I am not seeing anything else at the moment.
The init-slave.sh and init-master.sh scripts are executed before the server is started, so that's where I do all my preprocessing of conf files. I checked the results and the substituted values are indeed correct.
Now the primary can receive connections from 0.0.0.0, which basically means it can receive from the Internet. The problem is that the standby can not connect to 0.0.0.0, that would mean it is connecting to the whole Internet. You will need to provide either the actual IP for the primary or its hostname.