Prisma Deploy Docker error “Could not connect to server”

99封情书 提交于 2019-12-03 03:26:43

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.

I found this solution to the same problem i was facing

docker-machine ip default

Use this address and replace the "localhost" with the IP with the above command to look something like this in prisma.yml file

endpoint: http://1xx.1xx.xx.xxx:4466

The answer is referred from this Github Link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!