mirror of
https://github.com/linuxserver/docker-nextcloud.git
synced 2026-06-03 09:57:35 +00:00
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b8d97ff66d | |||
| ec4da50224 | |||
| 1cc613b677 | |||
| 9878957017 | |||
| c855b2a08b | |||
| 743fda816f | |||
| d4643180d2 | |||
| 0cc6bdbea1 | |||
| e5dc93fd8e | |||
| 705610b073 | |||
| c4a8cafb98 | |||
| a29fb57ce6 | |||
| 34122d554a | |||
| be108f29c0 | |||
| 1acf245951 | |||
| 678e055246 | |||
| 087af6a87d | |||
| b3e535133a | |||
| 6cfdcbe06a | |||
| b88a56ff28 | |||
| 007691caf8 | |||
| 4295126fc3 | |||
| 5901725af9 | |||
| 414ae23314 | |||
| 2146f5cc1d |
+28
-28
@@ -1,19 +1,19 @@
|
|||||||
FROM lsiobase/alpine.nginx:3.5
|
FROM lsiobase/alpine.nginx:3.7
|
||||||
MAINTAINER sparklyballs
|
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
|
LABEL maintainer="sparklyballs"
|
||||||
|
|
||||||
# package version
|
# package version
|
||||||
ENV NEXTCLOUD_VER="11.0.2"
|
ENV NEXTCLOUD_VER="13.0.0"
|
||||||
|
|
||||||
# environment settings
|
# environment settings
|
||||||
ENV NEXTCLOUD_PATH="/config/www/nextcloud"
|
ENV NEXTCLOUD_PATH="/config/www/nextcloud"
|
||||||
|
|
||||||
# install build-dependencies
|
|
||||||
RUN \
|
RUN \
|
||||||
|
echo "**** install build packages ****" && \
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
apk add --no-cache --virtual=build-dependencies \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
@@ -25,8 +25,7 @@ RUN \
|
|||||||
re2c \
|
re2c \
|
||||||
samba-dev \
|
samba-dev \
|
||||||
zlib-dev && \
|
zlib-dev && \
|
||||||
|
echo "**** install runtime packages ****" && \
|
||||||
# install runtime packages
|
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
@@ -46,12 +45,15 @@ RUN \
|
|||||||
php7-ldap \
|
php7-ldap \
|
||||||
php7-mbstring \
|
php7-mbstring \
|
||||||
php7-mcrypt \
|
php7-mcrypt \
|
||||||
|
php7-memcached \
|
||||||
|
php7-opcache \
|
||||||
php7-pcntl \
|
php7-pcntl \
|
||||||
php7-pdo_mysql \
|
php7-pdo_mysql \
|
||||||
php7-pdo_pgsql \
|
php7-pdo_pgsql \
|
||||||
php7-pdo_sqlite \
|
php7-pdo_sqlite \
|
||||||
php7-pgsql \
|
php7-pgsql \
|
||||||
php7-posix \
|
php7-posix \
|
||||||
|
php7-redis \
|
||||||
php7-sqlite3 \
|
php7-sqlite3 \
|
||||||
php7-xml \
|
php7-xml \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
@@ -60,40 +62,38 @@ RUN \
|
|||||||
sudo \
|
sudo \
|
||||||
tar \
|
tar \
|
||||||
unzip && \
|
unzip && \
|
||||||
|
echo "**** compile smbclient ****" && \
|
||||||
apk add --no-cache \
|
|
||||||
--repository http://nl.alpinelinux.org/alpine/edge/testing \
|
|
||||||
php7-memcached && \
|
|
||||||
|
|
||||||
# fetch php smbclient source
|
|
||||||
git clone git://github.com/eduardok/libsmbclient-php.git /tmp/smbclient && \
|
git clone git://github.com/eduardok/libsmbclient-php.git /tmp/smbclient && \
|
||||||
|
|
||||||
# compile smbclient
|
|
||||||
cd /tmp/smbclient && \
|
cd /tmp/smbclient && \
|
||||||
phpize7 && \
|
phpize7 && \
|
||||||
./configure \
|
./configure \
|
||||||
--with-php-config=/usr/bin/php-config7 && \
|
--with-php-config=/usr/bin/php-config7 && \
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
|
echo "**** configure php and nginx for nextcloud ****" && \
|
||||||
# uninstall build-dependencies
|
|
||||||
apk del --purge \
|
|
||||||
build-dependencies && \
|
|
||||||
|
|
||||||
# configure php and nginx for nextcloud
|
|
||||||
echo "extension="smbclient.so"" > /etc/php7/conf.d/00_smbclient.ini && \
|
echo "extension="smbclient.so"" > /etc/php7/conf.d/00_smbclient.ini && \
|
||||||
sed -i \
|
sed -i \
|
||||||
's/;always_populate_raw_post_data = -1/always_populate_raw_post_data = -1/g' \
|
-e 's/;opcache.enable.*=.*/opcache.enable=1/g' \
|
||||||
/etc/php7/php.ini && \
|
-e 's/;opcache.interned_strings_buffer.*=.*/opcache.interned_strings_buffer=8/g' \
|
||||||
|
-e 's/;opcache.max_accelerated_files.*=.*/opcache.max_accelerated_files=10000/g' \
|
||||||
|
-e 's/;opcache.memory_consumption.*=.*/opcache.memory_consumption=128/g' \
|
||||||
|
-e 's/;opcache.save_comments.*=.*/opcache.save_comments=1/g' \
|
||||||
|
-e 's/;opcache.revalidate_freq.*=.*/opcache.revalidate_freq=1/g' \
|
||||||
|
-e 's/;always_populate_raw_post_data.*=.*/always_populate_raw_post_data=-1/g' \
|
||||||
|
/etc/php7/php.ini && \
|
||||||
|
sed -i \
|
||||||
|
'/opcache.enable=1/a opcache.enable_cli=1' \
|
||||||
|
/etc/php7/php.ini && \
|
||||||
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
|
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
|
||||||
|
echo "**** cleanup ****" && \
|
||||||
# cleanup
|
apk del --purge \
|
||||||
|
build-dependencies && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
VOLUME /config /data
|
VOLUME /config /data
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f
|
|||||||
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||||
|
|
||||||
# linuxserver/nextcloud
|
# linuxserver/nextcloud
|
||||||
[](https://microbadger.com/images/linuxserver/nextcloud "Get your own version badge on microbadger.com")[](http://microbadger.com/images/linuxserver/nextcloud "Get your own image badge on microbadger.com")[][hub][][hub][](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-nextcloud/)
|
[](https://microbadger.com/images/linuxserver/nextcloud "Get your own version badge on microbadger.com")[](https://microbadger.com/images/linuxserver/nextcloud "Get your own image badge on microbadger.com")[][hub][][hub][](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-nextcloud/)
|
||||||
|
|
||||||
[Nextcloud][appurl] gives you access to all your files wherever you are.
|
[Nextcloud][appurl] gives you access to all your files wherever you are.
|
||||||
|
|
||||||
@@ -65,6 +65,8 @@ Access the webui at `<your-ip>:443`, for more information check out [Nextcloud][
|
|||||||
|
|
||||||
Please note you will need a MySQL/MariaDB or other backend database to set this up. Also please look [here](https://docs.nextcloud.com/server/11/admin_manual/installation/system_requirements.html#database-requirements-for-mysql-mariadb) for how to configure your database with regard to binlog format and installation.
|
Please note you will need a MySQL/MariaDB or other backend database to set this up. Also please look [here](https://docs.nextcloud.com/server/11/admin_manual/installation/system_requirements.html#database-requirements-for-mysql-mariadb) for how to configure your database with regard to binlog format and installation.
|
||||||
|
|
||||||
|
If updating to nextcloud 12 you will need to comment out line `add_header X-Frame-Options "SAMEORIGIN";` in the file /config/nginx/site-confs/default
|
||||||
|
|
||||||
## Info
|
## Info
|
||||||
|
|
||||||
* Monitor the logs of the container in realtime `docker logs -f nextcloud`.
|
* Monitor the logs of the container in realtime `docker logs -f nextcloud`.
|
||||||
@@ -79,4 +81,13 @@ Please note you will need a MySQL/MariaDB or other backend database to set this
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
+ **06.02.18:** Bump default install to 13.0.0.
|
||||||
|
+ **26.01.18:** Rebase to alpine 3.7, bump default install to 12.0.5.
|
||||||
|
+ **12.12.17:** Bump default install to 12.0.4, fix continuation lines.
|
||||||
|
+ **15.10.17:** Sed php.ini for opcache requirements in newer nextcloud versions.
|
||||||
|
+ **20.09.17:** Bump default install to 12.0.3.
|
||||||
|
+ **19.08.17:** Bump default install to 12.0.2.
|
||||||
|
+ **25.05.17:** Rebase to alpine 3.6.
|
||||||
|
+ **22.05.17:** Update to nextcloud 12.0, adding required dependecies and note about commenting out SAMEORIGIN; line.
|
||||||
|
+ **03.05.17:** Use community repo of memcached.
|
||||||
+ **07.03.17:** Release into main repository and upgrade to php7 and Alpine 3.5.
|
+ **07.03.17:** Release into main repository and upgrade to php7 and Alpine 3.5.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ server {
|
|||||||
# Add headers to serve security related headers
|
# Add headers to serve security related headers
|
||||||
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
|
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
add_header X-Frame-Options "SAMEORIGIN";
|
# add_header X-Frame-Options "SAMEORIGIN";
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
add_header X-Robots-Tag none;
|
add_header X-Robots-Tag none;
|
||||||
add_header X-Download-Options noopen;
|
add_header X-Download-Options noopen;
|
||||||
|
|||||||
Reference in New Issue
Block a user