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

I've been trying to deploy service whole day on Koyeb and on the Render. But on Koyeb it always sa

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;
    }
...

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744033006a4546908.html

相关推荐

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

    I've been trying to deploy service whole day on Koyeb and on the Render. But on Koyeb it always sa

    9天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信