|
|
@ -22,9 +22,9 @@ ENV DBNAME=nextcloud |
|
|
|
### |
|
|
|
|
|
|
|
# install packages we want |
|
|
|
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 redis php-redis postgresql postgresql-doc php-ldap php-bcmath |
|
|
|
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 \ |
|
|
|
redis php-redis postgresql postgresql-doc php-ldap php-bcmath cron |
|
|
|
|
|
|
|
|
|
|
|
# put database variables in /etc/environment so anyone can access them |
|
|
@ -45,7 +45,7 @@ COPY assets/bin/ /usr/local/bin/ |
|
|
|
# make sure volume dirs exist, and copy sample data |
|
|
|
RUN mkdir -p /vol/data /vol/files |
|
|
|
|
|
|
|
COPY --chown=www-data:www-data assets/data/ /vol/data/ |
|
|
|
COPY --chown=www-data:www-data data/ /vol/data/ |
|
|
|
|
|
|
|
### |
|
|
|
### PHP |
|
|
@ -119,6 +119,9 @@ RUN ln -s /vol/data/host.config.php nextcloud/config/host.config.php |
|
|
|
# copy nextcloud db service |
|
|
|
COPY assets/nextcloud-db.service /etc/systemd/system/ |
|
|
|
|
|
|
|
# enable service |
|
|
|
RUN systemctl enable nextcloud-db.service |
|
|
|
|
|
|
|
### |
|
|
|
### Crontab |
|
|
|
### |
|
|
|