docker-compose命令下载一些文件,这需要很多时间

时间:2019-05-31 08:50:25

标签: docker prisma

我正在尝试部署pyramida,但它将引发以下错误: 错误:找不到工作空间“ *”和集群“默认”的集群

为了解决这个问题,我进行了搜索,然后得到了: 您必须在您的docker-compose文件上放置managementApiSecret, 放完后我已经运行了docker-compose up -d 它会从...下载一些文件...(我的wifi是最新的)

因此,docker-compose.yml文件存在错误或其他问题? 任何人都不知道,请让我知道! 谢谢!!

运行docker-compose up -d之后:

Pulling prisma (prismagraphql/prisma:1.28)...
1.28: Pulling from prismagraphql/prisma
169185f82c45: Already exists
1e929b64ace7: Already exists
950a634ae87e: Pull complete
bc044fe2ebb3: Pull complete
0873a6492f84: Pull complete
4c8d4b619d83: Pull complete
5ae41cd411ee: Pull complete
981b5a112818: Downloading [================================================>  ]  2.762MB/2.835MB
2916748126fc: Download complete
4c1438795551: Download complete
1eacf12374c3: Download complete
c4b88cb35d78: Download complete
601b39379e45: Download complete
736049285c71: Download complete
40c4cc63c060: Download complete
85aef20a5690: Download complete

docker-compose.yml:

version: '3'
services:
  prisma:
    image: prismagraphql/prisma:1.28
    restart: always
    ports:
      - '4466:4466'
    environment:
      PRISMA_CONFIG: |
        port: 4466
        managementApiSecret: thisismysupersecretkeytext  
        databases:
          default:
            connector: mysql
            host: 192.168.99.1
            port: 3306
            user: root
            password: prisma
  mysql:
    image: mysql:5.7
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: prisma
    volumes:
      - mysql:/var/lib/mysql
volumes:
  mysql: ~

0 个答案:

没有答案