浏览代码

Lychee mariadb updated stack to fix some mistakes (#188)

Robert Middleswarth 3 年之前
父节点
当前提交
5d12ae5ecf
共有 3 个文件被更改,包括 128 次插入16 次删除
  1. 16 16
      stack/lychee-mariadb.yml
  2. 56 0
      template/portainer-v2-arm32.json
  3. 56 0
      template/portainer-v2-arm64.json

+ 16 - 16
stack/lychee-mariadb.yml

@@ -4,13 +4,13 @@ services:
     container name: mariadb
     image: linuxserver/mariadb:latest
     environment:
-      MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
-      MYSQL_DATABASE=${DATABASE_NAME}
-      MYSQL_USER=${DATABASE_USER}
-      MYSQL_PASSWORD=${DATABASE_PASSWORD}
-      PGID=${PGID}
-      PUID=${PUID}
-      TZ=${TZ}
+      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
+      MYSQL_DATABASE: ${DATABASE_NAME}
+      MYSQL_USER: ${DATABASE_USER}
+      MYSQL_PASSWORD: ${DATABASE_PASSWORD}
+      PGID: ${PGID}
+      PUID: ${PUID}
+      TZ: ${TZ}
     networks:
       - lychee-mariadb_network
     restart: unless-stopped
@@ -22,21 +22,21 @@ services:
     hostname: lychee
     image: linuxserver/lychee:latest
     environment:
-      DB_HOST=mariadb
-      DB_USERNAME=${DATABASE_USER}
-      DB_PASSWORD=${DATABASE_PASSWORD}
-      DB_DATABASE=${DATABASE_NAME}
-      DB_PORT=3306
-      PGID=${PGID}
-      PUID=${PUID}
-      TZ=${TZ}
+      DB_HOST: mariadb
+      DB_USERNAME: ${DATABASE_USER}
+      DB_PASSWORD: ${DATABASE_PASSWORD}
+      DB_DATABASE: ${DATABASE_NAME}
+      DB_PORT: 3306
+      PGID: ${PGID}
+      PUID: ${PUID}
+      TZ: ${TZ}
     networks:
       - lychee-mariadb_network
     ports:
       - 84:80
     restart: unless-stopped
     volumes:
-      - /portainer/Files/AppData/Config/Lychee/Config:/config
+      - /portainer/Files/AppData/Config/Lychee/config:/config
       - /portainer/Pictures:/pictures
     depends_on:
       - mariadb

+ 56 - 0
template/portainer-v2-arm32.json

@@ -2157,6 +2157,62 @@
 				}
 			]
 		},
+		{
+			"categories": [
+				"Cloud",
+				"Web",
+				"Management",
+				"Photos"
+			],
+			"description": "Lychee With Mariadb is a free photo-management tool, which runs on your server or web-space. Installing is a matter of seconds. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely.",
+			"env": [
+				{
+					"default": "1000",
+					"label": "PUID",
+					"name": "PUID"
+				},
+				{
+					"default": "1000",
+					"label": "PGID",
+					"name": "PGID"
+				},
+                {
+					"default": "America/New_York",
+                    "label": "TZ",
+                    "name": "TZ"
+                },
+				{
+					"default": "lychee",
+					"label": "DATABASE_NAME",
+					"name": "DATABASE_NAME"
+				},
+				{
+					"default": "lychee",
+					"label": "DATABASE_USER",
+					"name": "DATABASE_USER"
+				},
+                {
+                    "label": "DATABASE_PASSWORD",
+                    "name": "DATABASE_PASSWORD",
+                    "default": ""
+                },
+				{
+                    "label": "MYSQL_ROOT_PASSWORD",
+                    "name": "MYSQL_ROOT_PASSWORD",
+                    "default": ""
+                }
+			],
+			"logo": "https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/lychee-icon.png",
+			"name": "lychee-mariadb",
+			"platform": "linux",
+			"restart_policy": "unless-stopped",
+			"title": "Lychee With Mariadb",
+			"type": 3,
+			"repository": {
+				"stackfile": "stack/lychee-mariadb.yml",
+				"url": "https://github.com/novaspirit/pi-hosted/"
+			}
+		},
 		{
 			"categories": [
 				"Other",

+ 56 - 0
template/portainer-v2-arm64.json

@@ -2157,6 +2157,62 @@
 				}
 			]
 		},
+		{
+			"categories": [
+				"Cloud",
+				"Web",
+				"Management",
+				"Photos"
+			],
+			"description": "Lychee With Mariadb is a free photo-management tool, which runs on your server or web-space. Installing is a matter of seconds. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely.",
+			"env": [
+				{
+					"default": "1000",
+					"label": "PUID",
+					"name": "PUID"
+				},
+				{
+					"default": "1000",
+					"label": "PGID",
+					"name": "PGID"
+				},
+                {
+					"default": "America/New_York",
+                    "label": "TZ",
+                    "name": "TZ"
+                },
+				{
+					"default": "lychee",
+					"label": "DATABASE_NAME",
+					"name": "DATABASE_NAME"
+				},
+				{
+					"default": "lychee",
+					"label": "DATABASE_USER",
+					"name": "DATABASE_USER"
+				},
+                {
+                    "label": "DATABASE_PASSWORD",
+                    "name": "DATABASE_PASSWORD",
+                    "default": ""
+                },
+				{
+                    "label": "MYSQL_ROOT_PASSWORD",
+                    "name": "MYSQL_ROOT_PASSWORD",
+                    "default": ""
+                }
+			],
+			"logo": "https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/lychee-icon.png",
+			"name": "lychee-mariadb",
+			"platform": "linux",
+			"restart_policy": "unless-stopped",
+			"title": "Lychee With Mariadb",
+			"type": 3,
+			"repository": {
+				"stackfile": "stack/lychee-mariadb.yml",
+				"url": "https://github.com/novaspirit/pi-hosted/"
+			}
+		},
 		{
 			"categories": [
 				"Other",