mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-18 02:56:42 +01:00
* Added example Dockerfile for FULL recommended dependencies under
full/
This commit is contained in:
parent
ac3f70f027
commit
34a1539332
4 changed files with 94 additions and 0 deletions
25
.examples/dockerfiles/full/apache/Dockerfile
Normal file
25
.examples/dockerfiles/full/apache/Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
FROM nextcloud:apache
|
||||||
|
|
||||||
|
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
|
||||||
|
&& apt-get update && apt-get install -y \
|
||||||
|
supervisor \
|
||||||
|
cron \
|
||||||
|
ffmpeg \
|
||||||
|
libmagickwand-dev \
|
||||||
|
libgmp3-dev \
|
||||||
|
libc-client-dev \
|
||||||
|
libkrb5-dev \
|
||||||
|
smbclient \
|
||||||
|
libsmbclient-dev \
|
||||||
|
# LibreOffice \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
|
||||||
|
&& docker-php-ext-install bz2 gmp imap \
|
||||||
|
&& pecl install imagick smbclient \
|
||||||
|
&& docker-php-ext-enable imagick smbclient \
|
||||||
|
&& mkdir /var/log/supervisord /var/run/supervisord \
|
||||||
|
&& echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\""| crontab -
|
||||||
|
|
||||||
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
||||||
|
|
||||||
|
CMD ["/usr/bin/supervisord"]
|
22
.examples/dockerfiles/full/apache/supervisord.conf
Normal file
22
.examples/dockerfiles/full/apache/supervisord.conf
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
logfile=/var/log/supervisord/supervisord.log
|
||||||
|
pidfile=/var/run/supervisord/supervisord.pid
|
||||||
|
childlogdir=/var/log/supervisord/
|
||||||
|
logfile_maxbytes=50MB ; maximum size of logfile before rotation
|
||||||
|
logfile_backups=10 ; number of backed up logfiles
|
||||||
|
loglevel=error
|
||||||
|
|
||||||
|
[program:php-fpm]
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
command=php-fpm
|
||||||
|
|
||||||
|
[program:cron]
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
command=cron -f
|
25
.examples/dockerfiles/full/fpm/Dockerfile
Normal file
25
.examples/dockerfiles/full/fpm/Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
FROM nextcloud:fpm
|
||||||
|
|
||||||
|
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
|
||||||
|
&& apt-get update && apt-get install -y \
|
||||||
|
supervisor \
|
||||||
|
cron \
|
||||||
|
ffmpeg \
|
||||||
|
libmagickwand-dev \
|
||||||
|
libgmp3-dev \
|
||||||
|
libc-client-dev \
|
||||||
|
libkrb5-dev \
|
||||||
|
smbclient \
|
||||||
|
libsmbclient-dev \
|
||||||
|
# LibreOffice \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
|
||||||
|
&& docker-php-ext-install bz2 gmp imap \
|
||||||
|
&& pecl install imagick smbclient \
|
||||||
|
&& docker-php-ext-enable imagick smbclient \
|
||||||
|
&& mkdir /var/log/supervisord /var/run/supervisord \
|
||||||
|
&& echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\""| crontab -
|
||||||
|
|
||||||
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
||||||
|
|
||||||
|
CMD ["/usr/bin/supervisord"]
|
22
.examples/dockerfiles/full/fpm/supervisord.conf
Normal file
22
.examples/dockerfiles/full/fpm/supervisord.conf
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
logfile=/var/log/supervisord/supervisord.log
|
||||||
|
pidfile=/var/run/supervisord/supervisord.pid
|
||||||
|
childlogdir=/var/log/supervisord/
|
||||||
|
logfile_maxbytes=50MB ; maximum size of logfile before rotation
|
||||||
|
logfile_backups=10 ; number of backed up logfiles
|
||||||
|
loglevel=error
|
||||||
|
|
||||||
|
[program:php-fpm]
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
command=php-fpm
|
||||||
|
|
||||||
|
[program:cron]
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
command=cron -f
|
Loading…
Reference in a new issue