Tag: nextcloud

无法从apache访问php-fpm容器

我在我的Ubuntu机器上安装了最新的Nextcloud容器。 它使用以下命令成功启动: sudo docker run –name nextcloud –link mysql:mysql -p 9000:9000 -v /data/nextcloud:/var/www/html -d nextcloud:latest 命令sudo docker logs nextcloud显示: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using […]

在nginx / nxgin-proxy容器内使用Nextcloud与其他服务一起使用

我试图获得下一个nextcloud:fpm图像运行一个nginx泊坞窗图像加上一个neginx-proxy泊坞窗图像,并尝试从同一个nginx图像除了netxcloud(例如sonarr等)以外的几个服务。 在orde做到这一点,我想configuration的一切,所以当我尝试: http//my-server.com/nextcloud我提出与nexcloud,当我做“http // my-server.com / sonarr`我去声纳服务。 我创build了一个如下的目录: nginx ,其中包含与nginx相关的所有内容。 里面nginx nextcloud`我在哪里configurationnexcloud。 在nginx , docker-compose.yml是: version: '2' services: proxy: image: jwilder/nginx-proxy container_name: proxy ports: – 80:80 – 443:443 volumes: – /mnt/server/proxy/conf.d:/etc/nginx/conf.d – /mnt/server/proxy/vhost.d:/etc/nginx/vhost.d – /mnt/server/proxy/html:/usr/share/nginx/html – /mnt/server/proxy/certs:/etc/nginx/certs:ro – /var/run/docker.sock:/tmp/docker.sock:ro networks: – proxy-tier restart: always letsencrypt-companion: image: alastaircoote/docker-letsencrypt-nginx-proxy-companion container_name: letsencrypt-companion volumes_from: – proxy volumes: – /var/run/docker.sock:/var/run/docker.sock:ro […]

Docker容器内的Nginx根

我试图在nginx /var/www/nextcloud中指向/var/www/nextcloud的subdir中运行nextcloud 。 但是无论我做什么,当我访问它时,nginx都会继续尝试为/var/www/nextcloud/nextcloud服务。 这是ngix.conf (注意root /var/www;行) user www-data; http { upstream backend { server nextcloud:9000; } upstream php-handler { server nextcloud:9000; } server { listen 80; # Add headers to serve security related headers # Before enabling Strict-Transport-Security headers please read into this # topic first. #add_header Strict-Transport-Security "max-age=15768000; # includeSubDomains; preload;"; add_header X-Content-Type-Options […]