For me, this was caused by old volume. So postgres did not run it's init script. You need to delete this unnecessary volume