@ -25,7 +25,7 @@ ENV DBNAME=nextcloud
# install packages we want
# install packages we want
RUN apt update -y && apt install -y apache2 php-fpm php-gd php-zip php-pgsql \
RUN apt update -y && apt install -y apache2 php-fpm php-gd php-zip php-pgsql \
php-curl php-mbstring php-intl php-imagick php-xml php-gmp php-json \
php-curl php-mbstring php-intl php-imagick php-xml php-gmp php-json \
redis php-redis postgresql postgresql-doc php-ldap php-bcmath cron
redis php-redis postgresql postgresql-doc php-ldap php-bcmath jq
# put database variables in /etc/environment so anyone can access them
# put database variables in /etc/environment so anyone can access them
@ -72,8 +72,6 @@ COPY --chown=postgres:postgres assets/postgresql ./
RUN mv postgresql/pg_hba.conf /etc/postgresql/${PSQLV:?}/main/ & \
RUN mv postgresql/pg_hba.conf /etc/postgresql/${PSQLV:?}/main/ & \
cat postgresql/postgresql.conf >> /etc/postgresql/${PSQLV:?}/main/postgresql.conf
cat postgresql/postgresql.conf >> /etc/postgresql/${PSQLV:?}/main/postgresql.conf
###
###
### Apache
### Apache
###
###
@ -120,22 +118,15 @@ RUN cd nextcloud/config && \
ln -s /vol/data/secret.config.php
ln -s /vol/data/secret.config.php
###
###
### DB Auto Load/Dump
### Systemd
###
###
# copy service
# copy services
COPY assets/db-updown.service /etc/systemd/system/
COPY assets/systemd/ /etc/systemd/system/
# enable service
# enable service
RUN systemctl enable db-updown.service
RUN systemctl enable db-updown.service
###
### Crontab
###
COPY assets/crontab /root/
# crontab for www-data
RUN crontab -u www-data /root/crontab
###
###
### Bugfix
### Bugfix
###
###
@ -145,10 +136,6 @@ COPY assets/bugfix/redis-server.service /etc/systemd/system/redis-server.service
COPY assets/bugfix/apache2.override /etc/systemd/system/apache2.service.d/override.conf
COPY assets/bugfix/apache2.override /etc/systemd/system/apache2.service.d/override.conf
# bugfix for cron
COPY assets/bugfix/cronfix /root/
RUN chmod +x /root/cronfix && /root/cronfix
###
###
### Workdir
### Workdir
###
###