1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

add nextcloud

This commit is contained in:
kev 2016-07-10 20:03:02 +08:00
parent 92e8aa9792
commit fc97d5fbf8
4 changed files with 102 additions and 2 deletions

@ -96,7 +96,6 @@ A collection of delicious docker recipes.
- [x] ffserver :beetle:
- [x] icecast
- [x] live555
- [x] mediagoblin
- [x] minidlna
- [x] murmur
- [x] plex :moneybag:
@ -107,7 +106,6 @@ A collection of delicious docker recipes.
- [x] tesseract
- [x] youtube-dl
- [x] youtube-worker :beetle:
- [x] zoneminder
## Web
@ -126,7 +124,9 @@ A collection of delicious docker recipes.
- [x] json-server
- [x] magento
- [x] mantisbt
- [x] mediagoblin
- [x] netdata
- [x] nextcloud :+1:
- [x] nginad
- [x] nodebb :+1:
- [x] node-red :+1:
@ -138,6 +138,7 @@ A collection of delicious docker recipes.
- [x] phpvirtualbox-arm
- [x] piwik
- [x] revive
- [x] zoneminder
## Security

59
nextcloud/Dockerfile Normal file

@ -0,0 +1,59 @@
#
# Dockerfile for nextcloud
#
FROM php:7-apache
MAINTAINER kev <noreply@easypi.info>
RUN a2enmod rewrite
RUN set -xe \
&& apt-get update \
&& apt-get install -y bzip2 \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng12-dev \
libpq-dev \
libxml2-dev \
smbclient \
&& ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& mkdir -p /usr/src/php/ext/memcached \
&& curl -sSL https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz | tar xz --strip 1 -C /usr/src/php/ext/memcached \
&& docker-php-ext-configure memcached \
&& docker-php-ext-install exif \
gd \
intl \
ldap \
mbstring \
mcrypt \
memcached \
mysqli \
pcntl \
pdo_mysql \
pdo_pgsql \
pgsql \
zip \
&& pecl install APCu-5.1.5 \
&& pecl install redis-3.0.0 \
&& docker-php-ext-enable apcu redis \
&& rm -rf /var/lib/apt/lists/*
ENV NC_VERSION 9.0.52
ENV NC_FILE nextcloud-${NC_VERSION}.tar.bz2
ENV NC_MD5 08f0fc5b85b491e99069da8a86fc9fe8
ENV NC_URL https://download.nextcloud.com/server/releases/${NC_FILE}
RUN set -xe \
&& curl -sSL ${NC_URL} -o ${NC_FILE} \
&& echo "${NC_MD5} ${NC_FILE}" | md5sum -c \
&& tar xjf ${NC_FILE} --strip 1 \
&& rm -rf ${NC_FILE} \
&& chown -R www-data:www-data .
VOLUME /var/www/html/data

33
nextcloud/README.md Normal file

@ -0,0 +1,33 @@
nextcloud
=========
[Nextcloud][1] puts your data at your fingertips, under your control.
## docker-compose.yml
```yaml
nextcloud:
image: vimagick/nextcloud
ports:
- "8080:80"
volumes:
- ./data:/var/www/html/data
restart: always
```
## Server Setup
```bash
$ mkdir data
$ chown www-data:www-data data
$ docker-compose up -d
```
## Client Setup
- Android: <https://download.nextcloud.com/android/nextcloud-10010099.apk>
- Linux: <https://software.opensuse.org/download/package?project=isv:ownCloud:desktop&package=owncloud-client>
- MacOSX: <https://download.owncloud.com/desktop/stable/ownCloud-2.2.2.3472.pkg>
- Windows: <https://download.owncloud.com/desktop/stable/ownCloud-2.2.2.6192-setup.exe>
[1]: https://nextcloud.com/

@ -0,0 +1,7 @@
nextcloud:
image: vimagick/nextcloud
ports:
- "8080:80"
volumes:
- ./data:/var/www/html/data
restart: always