docker-compose部署django的坑

1,115次阅读
没有评论

1.使用docker-compose up 运行django项目只输出:Watching for file changes with StatReloader

手动进入容器运行项目是正常的,解决方案就是修改docker-compose.yml文件,在build同级添加 tty: true

version: '3'
services:
  django:
    container_name:
      abell-django
    build:
      context: .
      dockerfile: DockerfileBase

正文完
 0
评论(没有评论)