Prisma Deploy Docker error “Could not connect to server”

后端 未结 3 954
[愿得一人]
[愿得一人] 2021-02-06 11:53

This is steps I have done

prisma init

I set postgresql for database in my local(not exist).

It created 3 files, datamodel.graphql, dock

3条回答
  •  清酒与你
    2021-02-06 12:38

    The documentation mentions:

    docker ps
    

    You should see output similar to this:

    $ docker ps
    CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                    NAMES
    2b799c529e73        prismagraphql/prisma:1.7            "/bin/sh -c /app/sta…"   17 hours ago        Up 7 hours          0.0.0.0:4466->4466/tcp   myapp_prisma_1
    757dfba212f7        mysql:5.7                           "docker-entrypoint.s…"   17 hours ago  
    

    (Here shown with mysql, but valid with postgresql too)

    The point is: there should be two containers running, not one.

    Check docker-compose logs to see why the second one (database) did not start.

提交回复
热议问题