From 15f29021e51cb24dc0b6359e15ea1ebd2729b412 Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 1 May 2022 15:17:50 +0200 Subject: [PATCH] first commit --- docs/portainer-stacks/Nextcloud.md | 86 ++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 87 insertions(+) create mode 100644 docs/portainer-stacks/Nextcloud.md diff --git a/docs/portainer-stacks/Nextcloud.md b/docs/portainer-stacks/Nextcloud.md new file mode 100644 index 0000000..811d8a4 --- /dev/null +++ b/docs/portainer-stacks/Nextcloud.md @@ -0,0 +1,86 @@ +Portainer Stack: +```yaml +--- +version: "3.8" +services: + nextcloud: + image: lscr.io/linuxserver/nextcloud:${tag-latest} + container_name: nextcloud + environment: + - PUID=${PUID-1000} + - PGID=${PGID-1000} + - TZ=${TZ-Europe/Amsterdam} + - NEXTCLOUD_UPDATE=1 + - DOCKER_MODS=linuxserver/mods:nextcloud-mediadc + network_mode: ${net-bridge} + volumes: + - /docker/nextcloud/config:/config + - /docker/nextcloud/data:/data +# ports: +# - 52443:443 + restart: ${RST-unless-stopped} + labels: + - com.centurylinklabs.watchtower.enable=${AutoUpdate-true} + + nextcloud_db: + image: lscr.io/linuxserver/mariadb:${tag-latest} + container_name: nextcloud_db + network_mode: ${net-bridge} + environment: + - PUID=${PUID-1000} + - PGID=${PGID-1000} + - TZ=${TZ-Europe/Amsterdam} + - MYSQL_ROOT_PASSWORD=${db_rootpwd} + - MYSQL_DATABASE=${db_name} + - MYSQL_USER=${db_user} + - MYSQL_PASSWORD=${db_password} + volumes: + - /docker/nextcloud/db:/config + restart: ${RST-unless-stopped} + labels: + - com.centurylinklabs.watchtower.enable=${AutoUpdate-true} + - db=mariadb + +``` + +To install Face Detection App, search for the folder `custom-cont-init.d` and create a file eg: `install_custom_php7-dlib.sh` and paste: + +```bash +#!/bin/bash +#FLAG="/config/firstbook.log" +FLAG="/usr/lib/php7/modules/pdlib.so" +if [ ! -f $FLAG ]; then + apk add --no-cache --upgrade make cmake gcc g++ php7-dev libx11-dev openblas-dev re2c + + rm -rf dlib pdlib + git clone https://github.com/davisking/dlib.git + cd dlib/dlib + mkdir build + cd build + cmake -DBUILD_SHARED_LIBS=ON .. + make + sudo make install + + cd / + + git clone https://github.com/goodspb/pdlib.git + cd pdlib + phpize + PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig ./configure + make + sudo make install + rm -rf /dlib /pdlib +# touch $FLAG +else + echo "Already run of 1st boot. Delete /config/firstboot.log to run again on next boot" +fi +``` + +And restart the container: +``` +docker restart nextcloud +``` + +If Face Detection still cannot be installed ssh into the container and remove `/usr/lib/php7/modules/pdlib.so` + +[Sauce](https://github.com/linuxserver/docker-nextcloud/issues/171) \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 166e46c..7baf42f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -94,6 +94,7 @@ nav: - Librespeed: portainer-stacks/Librespeed.md - MQTT-Explorer: portainer-stacks/mqtt-explorer.md - MQTT Mosquitto: portainer-stacks/MQTT-Mosquitto.md + - Nextcloud: portainer-stacks/Nextcloud.md - Octoprint: portainer-stacks/octoprint.md - PhotoView: portainer-stacks/PhotoView.md - qBittorrent: portainer-stacks/qbittorrent.md