Могу я попросить помощи для устранения этой ошибки, я запускаю эту команду docker run --rm -it -p 80:80 myapp/jelo:latest
nginx: [emerg] no port in upstream "9000" in /etc/nginx/conf.d/default.conf:17
Вот мой Dockerfile
FROM php:7.4-fpm-alpine
#RUN docker-php-ext-install pdo
RUN docker-php-ext-install pdo_mysql
RUN apt-get update \
&& apt-get install –y nginx
COPY index.php /var/www/myapp
ADD default.conf /etc/nginx/conf.d/default.conf
EXPOSE 9000
CMD ["nginx", "-g", "daemon off;"]
Вот мой default.conf
server {
listen 80;
index index.php;
server_name myapp.local;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/myapp;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass 9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
Заранее спасибо