浏览代码

Merge pull request #103 from rmiddle/nextcloud

Migrate Nextclound from Selfhosted to pi-hosted repo.
Robert Middleswarth 3 年之前
父节点
当前提交
ccad4d23b3
共有 2 个文件被更改,包括 33 次插入2 次删除
  1. 31 0
      pi-hosted_template/stack/nextcloud.yml
  2. 2 2
      pi-hosted_template/template/portainer-v2.json

+ 31 - 0
pi-hosted_template/stack/nextcloud.yml

@@ -0,0 +1,31 @@
+---
+version: "2"
+services:
+  nextcloud:
+    image: linuxserver/nextcloud
+    container_name: nextcloud
+    environment:
+      - PUID=${PUID}
+      - PGID=${PGID}
+      - TZ=${TZ}
+    volumes:
+      - /portainer/Files/AppData/Config/Nextcloud/Config:/config
+    ports:
+      - ${PORT}:443
+    restart: unless-stopped
+    depends_on:
+      - nextcloud_db
+  nextcloud_db:
+    image: linuxserver/mariadb
+    container_name: nextcloud_db
+    environment:
+      - PUID=${PUID}
+      - PGID=${PGID}
+      - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
+      - TZ=${TZ}
+      - MYSQL_DATABASE=nextcloud_db
+      - MYSQL_USER=nextcloud
+      - MYSQL_PASSWORD=${DATABASE_PASSWORD}
+    volumes:
+      - /portainer/Files/AppData/Config/Nextcloud/DB:/config
+    restart: unless-stopped

+ 2 - 2
pi-hosted_template/template/portainer-v2.json

@@ -1287,8 +1287,8 @@
 			"note": "The database user is nextcloud and the database is nextcloud_db. The host of the database will be located at the bottom of the DB conotainer in portainer.",
 			"platform": "linux",
 			"repository": {
-				"stackfile": "Template/Stack/nextcloud.yml",
-				"url": "https://github.com/SelfhostedPro/selfhosted_templates"
+				"stackfile": "pi-hosted_template/stack/nextcloud.yml",
+				"url": "https://github.com/novaspirit/pi-hosted"
 			},
 			"title": "Nextcloud",
 			"type": 3