Docker Docker使用 phpBB 的 NGINX 文件不显示来自 /var/www/ 目录的数据

Docker Dockerfile NGINX with phpBB not showing data from /var/www/ directory

我有以下 Dockerfile https://github.com/SeppPenner/docker-nginx-ssl-secure (a original NGINX container with SSL forked from https://github.com/MarvAmBass/docker-nginx-ssl-secure).

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"]

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

我现在使用以下 docker 容器并且它有效:https://github.com/blueimp/phpbb/issues/1