Mongodb not authorized on prisma to execute command


#1

Hi
i configure my prisma server with the file below

version: '3' 
services:
prisma:
  image: prismagraphql/prisma:1.34
  restart: always
  ports:
  - "4466:4466"
  environment:
    PRISMA_CONFIG: |
      managementApiSecret: 2fcf5769-41d0-4c28-bbf3-hj67djeg
      port: 4466
      databases:
        default:
          connector: mongo
          uri: mongodb://username:password@dbserverip:27017/dbname
          database: dbname

username has dbOwner role.

When i started my server i got the error not authorized on prisma to execute command.

But when i create a db name prisma, username prisma and password prisma everything work well.

I want to know if it is possible to use another database name, username and password than prisma ?

Regards


#2

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.