Always change your default port, look for Port on sshd_config and change with your desired port like this.
Port 2244
To allow connection from Docker container, put on pg_hba.conf with this configuration.
host all all 172.16.0.0/12 scram-sha-256
We usually forgot to grant usage for schema, https://stackoverflow.com/a/67276542.