Procházet zdrojové kódy

Create new template for Lyncee that included a MariaDB instance. (#187)

Robert Middleswarth před 3 roky
rodič
revize
8084cd6497

+ 45 - 0
stack/lychee-mariadb.yml

@@ -0,0 +1,45 @@
+version: "3"
+services:
+  mariadb:
+    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}
+    networks:
+      - lychee-mariadb_network
+    restart: unless-stopped
+    volumes:
+      - /portainer/Files/AppData/Config/Lychee/Mariadb:/config
+
+  lychee:
+    container_name: lychee
+    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}
+    networks:
+      - lychee-mariadb_network
+    ports:
+      - 84:80
+    restart: unless-stopped
+    volumes:
+      - /portainer/Files/AppData/Config/Lychee/Config:/config
+      - /portainer/Pictures:/pictures
+    depends_on:
+      - mariadb
+
+networks:
+  lychee-mariadb_network:

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

@@ -983,9 +983,6 @@
 			"logo": "https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/drupal.png",
 			"name": "drupal",
 			"platform": "linux",
-			"ports": [
-				"4080:80/tcp"
-			],
 			"restart_policy": "unless-stopped",
 			"title": "Drupal",
 			"type": 3,
@@ -2215,6 +2212,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 - 3
template/portainer-v2-arm64.json

@@ -983,9 +983,6 @@
 			"logo": "https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/drupal.png",
 			"name": "drupal",
 			"platform": "linux",
-			"ports": [
-				"4080:80/tcp"
-			],
 			"restart_policy": "unless-stopped",
 			"title": "Drupal",
 			"type": 3,
@@ -2215,6 +2212,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",