V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tonghuashuai
V2EX  ›  Docker

docker-compose 启动的服务自动被退出,大家有遇到过没?

  •  
  •   tonghuashuai ·
    tonghuashuai · 2021-09-07 12:29:18 +08:00 · 1023 次点击
    这是一个创建于 934 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大概是启动了一个 nginx 一个 web 服务( python + flask + gunicorn ),总是莫名停掉,看了眼报错应该是 docker compose 的错误,网上搜了下没有头绪。web 服务启动着,即使没有任何请求,过几个小时就会报这个错误。

    log 看起来像是没有启动 docker 时使用 docker-compose 启动服务,但我确定 docker 是启动着的(因为另一个 container 一直是在线的)。怀疑像是 gunicorn [ Worker exiting ] 导致的,但也不确定。

    docker-compose.yml 文件: https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932#file-docker-compose-dev-yml

    dev.sh 文件: https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932#file-dev-sh

    退出前的 log: https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932#file-error-log

    https://gist.github.com/tonghs/69534c0c70f7aa7a009acbccee0ea932

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5392 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:05 · PVG 15:05 · LAX 00:05 · JFK 03:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.