Heroku在打开应用程序carashed应用程序时出现问题,网址为=错误代码= H10

时间:2020-05-24 08:19:28

标签: heroku docker-compose heroku-postgres heroku-cli

我需要一些帮助,请问我正在将容器推入heroku中,但出现错误

我正在关注本文档

https://devcenter.heroku.com/articles/local-development-with-docker-compose#introduction-to-docker-compose

2020-05-24T08:14:23.695153 + 00:00 heroku [web.1]:错误R10(启动超时)-> Web进程在启动后60秒内未能绑定到$ PORT 2020-05-24T08:14:23.717334 + 00:00 heroku [web.1]:使用SIGKILL停止进程 2020-05-24T08:14:23.800926 + 00:00 heroku [web.1]:进程退出,状态为137 2020-05-24T08:14:23.834910 + 00:00 heroku [web.1]:状态从开始更改为崩溃

  • 2020-05-24T08:14:26.299461 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ /”主机= myappdockerdemo.herokuapp.com request_id = 17f84221-3eaea3-43e9-b93b-e9b03ee2121d fwd =“ 49.151.99.164” dyno = connect = service = status = 503字节= protocol = https
  • 2020-05-24T08:14:27.092729 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”,方法= GET path =“ / favicon.ico” host = myappdockerdemo.herokuapp。 com request_id = 4f226a1e-1681-4fb6-bddc-70791433a8ef fwd =“ 49.151.99.164” dyno = connect = service = status = 503 bytes = pro tocol = https

docker-compose.yml

version: "3.8"
services:

  web:
    image: nginx:stable
    container_name: nginxcontainer
    env_file:
      - .env
    volumes:
      - ./:/opt/webapp
      - ./default.conf:/etc/nginx/conf.d/default.conf
    external_links:
      - php
  php:
    build: .
    container_name: php-container
  db:
    image: postgres:latest
    container_name: db-container
    ports:
      - "5432:5432"

.env

PORT=80

0 个答案:

没有答案