簡體   English   中英

帶有 phpBB 的 Docker Dockerfile NGINX 不顯示來自 /var/www/ 目錄的數據

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

我有以下 Dockerfile https://github.com/SeppPenner/docker-nginx-ssl-secure (一個帶有 SSL 的原始 NGINX 容器,從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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM