Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker Docker文件NGINX,phpBB不显示/var/www/directory中的数据_Docker_Nginx_Dockerfile_Phpbb3 - Fatal编程技术网

Docker Docker文件NGINX,phpBB不显示/var/www/directory中的数据

Docker Docker文件NGINX,phpBB不显示/var/www/directory中的数据,docker,nginx,dockerfile,phpbb3,Docker,Nginx,Dockerfile,Phpbb3,我有下面的Dockerfile(一个原始的NGINX容器,其SSL分叉自) 我现在也想在这个容器中运行phpBB。这似乎可行,但问题是我无法通过浏览器访问Web服务器,例如键入https://192.168.2.206/phpBB3进入URL栏。这里有人有什么想法吗?我现在使用了下面的docker容器,它成功了:-2?真的吗?嗯^^ FROM nginx:latest MAINTAINER SeppPenner RUN apt-get update; \ apt-get instal

我有下面的Dockerfile(一个原始的NGINX容器,其SSL分叉自)


我现在也想在这个容器中运行phpBB。这似乎可行,但问题是我无法通过浏览器访问Web服务器,例如键入
https://192.168.2.206/phpBB3
进入URL栏。这里有人有什么想法吗?

我现在使用了下面的docker容器,它成功了:

-2?真的吗?嗯^^
FROM nginx:latest

MAINTAINER SeppPenner

RUN apt-get update; \
    apt-get install -y wget; \
    apt-get install -y unzip; \
    apt-get install -y openssl

RUN wget https://www.phpbb.com/files/release/phpBB-3.2.2.zip

RUN mkdir -p /var/www/

RUN unzip phpBB-3.2.2.zip -d /var/www/; \
    rm phpBB-3.2.2.zip

RUN cd /var/www/phpBB3; \
    chmod 666 config.php; \
    chmod 777 store/; \
    chmod 777 cache/; \
    chmod 777 files/; \
    chmod 777 images/avatars/upload/

ENV LANG C.UTF-8

RUN rm -rf /etc/nginx/conf.d/*; \
    mkdir -p /etc/nginx/external

RUN sed -i 's/access_log.*/access_log \/dev\/stdout;/g' /etc/nginx/nginx.conf; \
    sed -i 's/error_log.*/error_log \/dev\/stdout info;/g' /etc/nginx/nginx.conf; \
    sed -i 's/^pid/daemon off;\npid/g' /etc/nginx/nginx.conf

ADD basic.conf /etc/nginx/conf.d/basic.conf
ADD ssl.conf /etc/nginx/conf.d/ssl.conf

ADD entrypoint.sh /opt/entrypoint.sh
RUN chmod a+x /opt/entrypoint.sh

ENTRYPOINT ["/opt/entrypoint.sh"]
CMD ["nginx"]