最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

laravel - HTTP health check failed on port 8000 - Stack Overflow

programmeradmin0浏览0评论

I've been trying to deploy service whole day on Koyeb and on the Render. But on Koyeb it always says HTTP health check failed on port 8000 and on Render it gives me Welcome to Nginx! page. Here's files

docker-composer.yml

  nginx:
    image: "nginx:stable-alpine"
    ports:
      - "8000:8000"
  ...

Dockerfile

FROM nginx:stable-alpine

WORKDIR /app

COPY . .

EXPOSE 8000

nginx.conf

server {
    listen 8000;
    index index.php index.html;
    server_name localhost;
    root /var/www/laravel/public;
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
        location /healthz {
        return 200 'OK';
        add_header Content-Type text/plain;
    }
...
发布评论

评论列表(0)

  1. 暂无评论