Eseguire chown -R postgres postgres_data in /shared dopo aver accesso al container Docker ha risolto il problema.
chown -R postgres postgres_data
/shared