Add examples for both cases apache and fpm
This commit is contained in:
parent
60ac9b728e
commit
6a54981de4
13
.examples/dockerfiles/cron/apache/Dockerfile
Normal file
13
.examples/dockerfiles/cron/apache/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM nextcloud:apache
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
supervisor \
|
||||||
|
cron \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN 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/cron/apache/supervisord.conf
Normal file
22
.examples/dockerfiles/cron/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:apache2]
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
command=apache2-foreground
|
||||||
|
|
||||||
|
[program:cron]
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
command=cron -f
|
7
.examples/dockerfiles/imap/fpm/Dockerfile
Normal file
7
.examples/dockerfiles/imap/fpm/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM nextcloud:fpm
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y libc-client-dev libkrb5-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
|
||||||
|
&& docker-php-ext-install imap
|
3
.examples/dockerfiles/smb/fpm/Dockerfile
Normal file
3
.examples/dockerfiles/smb/fpm/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM nextcloud:fpm
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y smbclient && rm -rf /var/lib/apt/lists/*
|
Loading…
Reference in New Issue
Block a user