docker中的语义媒体wiki

docker中的语义媒体wiki,docker,cookies,semantic-mediawiki,Docker,Cookies,Semantic Mediawiki,我试图让SMW在Docker容器中运行。我明白了 主页上,但它不会让我登录。它说: 登录错误 Knowledgebase使用cookies登录用户。您已禁用cookies。 请启用它们,然后重试 我的浏览器确实启用了cookies 这里有人在Docker中运行SMW和/或有关于我如何解决此问题的线索吗 Dockerfile: FROM centos:centos7 ENV HOME /opt/smw ADD . $HOME RUN chmod 777 $HOME # Add the ngix

我试图让SMW在Docker容器中运行。我明白了 主页上,但它不会让我登录。它说:

登录错误 Knowledgebase使用cookies登录用户。您已禁用cookies。 请启用它们,然后重试

我的浏览器确实启用了cookies

这里有人在Docker中运行SMW和/或有关于我如何解决此问题的线索吗

Dockerfile:

FROM centos:centos7
ENV HOME /opt/smw

ADD . $HOME
RUN chmod 777 $HOME

# Add the ngix and PHP dependent repository
ADD nginx.repo /etc/yum.repos.d/nginx.repo

# Installing packages 
RUN yum -y install nginx 

# Installing PHP
RUN yum -y --enablerepo=remi,remi-php56 install nginx php-fpm php-common php-mysql php-xml

# Installing MySQL
RUN yum -y install wget && \
    wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && \
    rpm -ivh mysql-community-release-el7-5.noarch.rpm && \
    yum -y update && \
    yum -y install mysql-server

# Installing supervisor
RUN yum install -y python-setuptools
RUN easy_install pip
RUN pip install supervisor

# Adding the configuration file of the nginx
ADD nginx.conf /etc/nginx/nginx.conf
ADD default.conf /etc/nginx/conf.d/default.conf

# Adding the configuration file of the Supervisor
ADD supervisord.conf /etc/

# Config MySQL
RUN chmod 755 $HOME/config_mysql.sh
RUN $HOME/config_mysql.sh

VOLUME ["/opt/smw"]
VOLUME ["/var/lib/mysql"]
EXPOSE 80

CMD ["/opt/smw/run.sh"]
supervisord.conf:

[supervisord]
;logfile=/var/log/supervisor/supervisord-nobody.log  ; (main log file;default $CWD/supervisord.log)
;logfile_maxbytes=50MB       ; (max main logfile bytes b4 rotation;default 50MB)
;logfile_backups=10          ; (num of main logfile rotation backups;default 10)
;loglevel=info               ; (log level;default info; others: debug,warn,trace)
;pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=true                ; (start in foreground if true;default false)
;user=nobody

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[program:php5-fpm]
command=/usr/sbin/php-fpm -c /etc/php-fpm.d
numprocs=1
autostart=true
autorestart=true

[program:php5-fpm-log]
command=tail -f /var/log/php5-fpm.log
stdout_events_enabled=true
stderr_events_enabled=true

[program:nginx]
command=/usr/sbin/nginx
numprocs=1
autostart=true
autorestart=true
nginx配置:

server {
    listen  80;

    root /opt/smw;
    index index.html index.htm index.php;

    # Make site accessible from http://set-ip-address.xip.io
    server_name localhost;

    access_log /var/log/nginx/localhost.com-access.log;
    error_log  /var/log/nginx/localhost.com-error.log error;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.html /index.php?$query_string;
    }

    location = /favicon.ico { log_not_found off; access_log off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    # Deny .htaccess file access
    location ~ /\.ht {
        deny all;
    }

我没有安装remi-php56,而是只安装了普通php,然后就没有问题了

我没有安装remi-php56,而是只安装了普通php,然后就没有问题了

显示您的Dockerfile或类似文件,以便我们可以在其前面使用Nginx复制您?是的,Nginx正在被使用将Dockerfile、supervisord.conf和Nginx conf添加到原始问题查看“开箱即用”解决方案显示您的Dockerfile或类似文件,以便我们可以在其前面使用Nginx复制您?是的,Nginx正在被使用将Nginx添加到Dockerfile,supervisord.conf和nginx conf到原始问题,请参阅“开箱即用”解决方案