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
版权声明:本文标题:laravel - HTTP health check failed on port 8000 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744033006a2579258.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论