[::1]:5432: connect error
Hi.
Built image from Dockerfile. Tried to run container from it but constantly receive this error: 

_Unable to connect to database: failed to connect to `host=localhost user=moneropay database=moneropay`: dial error (dial tcp [::1]:5432: connect: cannot assign requested address)_

Also container exits immediately even with -d, -dt or -dit options.

Any ideas how to fix it?