add Dockerfile and supervisord.conf

This commit is contained in:
andreas 2022-07-21 18:37:41 +02:00
commit a46a8bcc2c
2 changed files with 37 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
arg NC_TAG=24.0.3-apache
from docker.io/nextcloud:$NC_TAG
run apt-get update && apt-get install -y \
sudo cron samba-client unrar-free p7zip p7zip-full \
supervisor \
&& rm -rf /var/lib/apt/lists \
&& mkdir /var/log/supervisord /var/run/supervisord
copy supervisord.conf /
env NEXTCLOUD_UPDATE=1
cmd ["/usr/bin/supervisord", "-c", "/supervisord.conf"]

22
supervisord.conf Normal file
View 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
logfile_backups=10
loglevel=error
[program:php-fpm]
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.sh