add Dockerfile and supervisord.conf
This commit is contained in:
commit
a46a8bcc2c
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
22
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
|
||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user