admin管理员组

文章数量:1355528

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

本文标签: laravelHTTP health check failed on port 8000Stack Overflow