the error is generated by running docker using dockerfile. The error is: "throw new error('error: missing secret key. a secret key is needed to secure payload.');" payload docker
The solution is add this command line in dockerfile:
COPY .env ./
Get help straight from the Payload team with an Enterprise License.