met some problems (connection refused, Postgresql Docker role does not exist), following official docs, so decided to keep working example here
// works !!!
docker run --name sberHomeworkDb_5432 -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -e POSTGRES_DB=testDb -e POSTGRES_USER=testUser postgres:13.8-alpine
// works !!!
docker run --name sberHomeworkDb_5432 -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword postgres:13.8-alpine
// works !!!
docker run --name sberHomeworkDb -p 5433:5432 -e POSTGRES_PASSWORD=mysecretpassword postgres:13.8-alpine