Browse Source

bugfix

pull/1/head
Mar Alegre 4 years ago
parent
commit
fee9ceaa6b
  1. 11
      nextcloud/Containerfile
  2. 3
      nextcloud/Systemdfile

11
nextcloud/Containerfile

@ -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
###

3
nextcloud/Systemdfile

@ -31,6 +31,3 @@ nc-occ app:disable comments dashboard federation files_trashbin firstrunwizard r
# configure apps
# set calendar to refresh subscriptions once a day (to set to one hour use 'PT1H' instead)
nc-occ config:app:set dav calendarSubscriptionRefreshRate --value P1D
# enable DB service
systemd enable nextcloud-db.service

Loading…
Cancel
Save