Initial commit.
This commit is contained in:
19
docker/nextcloud/Dockerfile
Normal file
19
docker/nextcloud/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM nextcloud
|
||||
|
||||
# install necessary packages
|
||||
RUN apt-get update && apt-get install -y ocrmypdf supervisor
|
||||
|
||||
# create supervisord dir
|
||||
RUN mkdir /var/log/supervisord /var/run/supervisord
|
||||
COPY supervisord.conf /
|
||||
|
||||
# copy in memory size increase php ini file
|
||||
# we name it zzz because nextcloud.ini was overriding
|
||||
COPY zzz-memory-limit.ini /usr/local/etc/php/conf.d/
|
||||
|
||||
# remove memory limit from nextcloud.ini that overrides that
|
||||
# todo
|
||||
|
||||
ENV NEXTCLOUD_UPDATE=1
|
||||
|
||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||
23
docker/nextcloud/supervisord.conf
Normal file
23
docker/nextcloud/supervisord.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
[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.sh
|
||||
|
||||
1
docker/nextcloud/zzz-memory-limit.ini
Normal file
1
docker/nextcloud/zzz-memory-limit.ini
Normal file
@@ -0,0 +1 @@
|
||||
memory_limit=1G
|
||||
Reference in New Issue
Block a user