启动时,heroku容器应用程序崩溃

时间:2020-05-23 13:25:20

标签: docker heroku docker-compose

我可以寻求帮助吗,请成功在Heroku中推送并释放该容器,但是当我启动我的应用程序时,它崩溃了,这里是日志?请帮我,我不知道这个错误。

2020-05-23T13:19:13.709400 + 00:00 heroku [web.1]:使用命令php-fpm启动进程 2020-05-23T13:19:17.786369 + 00:00 app [web.1]:[23-May-2020 13:19:17]注意:当FPM未按以下方式运行时,[pool www]'user'指令将被忽略根 2020-05-23T13:19:17.786386 + 00:00 app [web.1]:[23-May-2020 13:19:17]注意:当FPM未按以下方式运行时,[pool www]'user'指令将被忽略根 2020-05-23T13:19:17.786387 + 00:00 app [web.1]:[23-May-2020 13:19:17]注意:当FPM未按以下方式运行时,[pool www]'group'指令将被忽略根 2020-05-23T13:19:17.786392 + 00:00 app [web.1]:[23-May-2020 13:19:17]注意:当FPM未按以下方式运行时,[pool www]'group'指令将被忽略根 2020-05-23T13:19:17.786560 + 00:00 app [web.1]:[23-May-2020 13:19:17]注意:fpm正在运行,pid 3 2020-05-23T13:19:17.787270 + 00:00 app [web.1]:[23-May-2020 13:19:17]注意:准备处理连接 2020-05-23T13:20.14.117981 + 00:00 heroku [web.1]:错误R10(启动超时)-> Web进程在启动后60秒内未能绑定到$ PORT 2020-05-23T13:20:14.141598 + 00:00 heroku [web.1]:使用SIGKILL停止进程 2020-05-23T13:20:14.208432 + 00:00 heroku [web.1]:进程退出,状态为137 2020-05-23T13:20:14.248955 + 00:00 heroku [web.1]:状态从开始更改为崩溃 2020-05-23T13:20:15.499546 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ /”主机= myappdockerdemo.herokuapp.com request_id = 376cd308-cc90 -4d16-bda6-fbe8a60f2a27 fwd =“ 49.148.64.161” dyno = connect = service = status = 503 bytes = protocol = https

version: "3.8"
services:

  web:
    image: nginx:stable
    container_name: nginxcontainer
    ports:
      - "80:80"
    volumes:
      - ./:/var/www/myapp
      - ./default.conf:/etc/nginx/conf.d/default.conf
    external_links:
      - php
  php:
    build: .
    volumes:
      - ./:/var/www/myapp
    container_name: php-container
    expose:
      - 9000

  db:
    image: mysql:latest
    container_name: mysql-container
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    env_file:
      - .env
    volumes:
      - ./mysql-data:/var/lib/mysql
    expose:
      - 3306
    ports:
      - "3306:3306"

0 个答案:

没有答案