瀏覽代碼

Add redmine to the template list. (#268)

Robert Middleswarth 3 年之前
父節點
當前提交
dfd74941d1
共有 4 個文件被更改,包括 245 次插入0 次删除
  1. 64 0
      pi-hosted_template/template/portainer-v2.json
  2. 53 0
      stack/redmine.yml
  3. 64 0
      template/portainer-v2-arm32.json
  4. 64 0
      template/portainer-v2-arm64.json

+ 64 - 0
pi-hosted_template/template/portainer-v2.json

@@ -4021,6 +4021,70 @@
 				"url": "https://github.com/novaspirit/pi-hosted"
 			}
 		},
+		{
+			"categories": [
+				"project-management",
+				"Other",
+				"Tools"
+			],
+			"description": "Open-source project management tool",
+			"note":"Default user and password are admin/admin",
+			"logo": "https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/redmine.png",
+			"name": "redmine",
+			"platform": "linux",
+			"ports": [
+				"4180:3000/tcp"
+			],
+			"env": [
+				{
+					"default": "1000",
+					"label": "PUID",
+					"name": "PUID"
+				},
+				{
+					"default": "1000",
+					"label": "PGID",
+					"name": "PGID"
+				},
+                {
+					"default": "America/New_York",
+                    "label": "TZ",
+                    "name": "TZ"
+                },
+				{
+					"default": "redmine",
+					"label": "DATABASE_NAME",
+					"name": "DATABASE_NAME"
+				},
+				{
+					"default": "redmine",
+					"label": "DATABASE_USER",
+					"name": "DATABASE_USER"
+				},
+				{
+					"default": "",
+					"label": "DATABASE_PASSWORD",
+					"name": "DATABASE_PASSWORD"
+				},
+				{
+					"default": "",
+					"label": "MYSQL_ROOT_PASSWORD",
+					"name": "MYSQL_ROOT_PASSWORD"
+				},
+				{
+					"default": "",
+					"label": "REDMINE_SECRET_KEY_BASE",
+					"name": "REDMINE_SECRET_KEY_BASE"
+				}
+			],
+			"restart_policy": "unless-stopped",
+			"title": "Redmine",
+			"type": 3,
+			"repository": {
+				"stackfile": "stack/redmine.yml",
+				"url": "https://github.com/novaspirit/pi-hosted"
+			}
+		},
 		{
 			"categories": [
 				"Backup",

+ 53 - 0
stack/redmine.yml

@@ -0,0 +1,53 @@
+version: "3.6"
+services:
+  mariadb:
+    hostname: mariadb
+    image: linuxserver/mariadb:latest
+    environment:
+      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
+      MYSQL_DATABASE: ${DATABASE_NAME}
+      MYSQL_USER: ${DATABASE_USER}
+      MYSQL_PASSWORD: ${DATABASE_PASSWORD}
+      PUID: ${USER_UID}
+      PGID: ${USER_GID}
+      TZ: ${TZ}
+    networks:
+      - redmine_network
+    restart: unless-stopped
+    volumes:
+      - /portainer/Files/AppData/Config/redmine/database:/config
+  phpmyadmin:
+    image: phpmyadmin:latest
+    environment:
+      PMA_HOST: mariadb
+      PMA_PORT: 3306
+      PMA_ARBITRARY: 1
+    ports:
+      - 4181:80
+    networks:
+      - redmine_network
+    restart: unless-stopped
+      
+  redmine:
+    container_name: redmine
+    hostname: redmine
+    image: redmine:latest
+    environment:
+      REDMINE_DB_MYSQL: mariadb
+      REDMINE_DB_PORT: 3306
+      REDMINE_DB_USERNAME: ${DATABASE_USER}
+      REDMINE_DB_PASSWORD: ${DATABASE_PASSWORD}
+      REDMINE_DB_DATABASE: ${DATABASE_NAME}
+      REDMINE_SECRET_KEY_BASE: ${REDMINE_SECRET_KEY_BASE}
+    networks:
+      - redmine_network
+    ports:
+      - 4180:80
+    restart: unless-stopped
+    volumes:
+      - /portainer/Files/AppData/Config/redmine/files:"/usr/src/redmine/files"
+    depends_on:
+      - mariadb
+
+networks:
+  redmine_network:

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

@@ -4021,6 +4021,70 @@
 				"url": "https://github.com/novaspirit/pi-hosted"
 			}
 		},
+		{
+			"categories": [
+				"project-management",
+				"Other",
+				"Tools"
+			],
+			"description": "Open-source project management tool",
+			"note":"Default user and password are admin/admin",
+			"logo": "https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/redmine.png",
+			"name": "redmine",
+			"platform": "linux",
+			"ports": [
+				"4180:3000/tcp"
+			],
+			"env": [
+				{
+					"default": "1000",
+					"label": "PUID",
+					"name": "PUID"
+				},
+				{
+					"default": "1000",
+					"label": "PGID",
+					"name": "PGID"
+				},
+                {
+					"default": "America/New_York",
+                    "label": "TZ",
+                    "name": "TZ"
+                },
+				{
+					"default": "redmine",
+					"label": "DATABASE_NAME",
+					"name": "DATABASE_NAME"
+				},
+				{
+					"default": "redmine",
+					"label": "DATABASE_USER",
+					"name": "DATABASE_USER"
+				},
+				{
+					"default": "",
+					"label": "DATABASE_PASSWORD",
+					"name": "DATABASE_PASSWORD"
+				},
+				{
+					"default": "",
+					"label": "MYSQL_ROOT_PASSWORD",
+					"name": "MYSQL_ROOT_PASSWORD"
+				},
+				{
+					"default": "",
+					"label": "REDMINE_SECRET_KEY_BASE",
+					"name": "REDMINE_SECRET_KEY_BASE"
+				}
+			],
+			"restart_policy": "unless-stopped",
+			"title": "Redmine",
+			"type": 3,
+			"repository": {
+				"stackfile": "stack/redmine.yml",
+				"url": "https://github.com/novaspirit/pi-hosted"
+			}
+		},
 		{
 			"categories": [
 				"Backup",

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

@@ -4276,6 +4276,70 @@
 				"url": "https://github.com/novaspirit/pi-hosted"
 			}
 		},
+		{
+			"categories": [
+				"project-management",
+				"Other",
+				"Tools"
+			],
+			"description": "Open-source project management tool",
+			"note":"Default user and password are admin/admin",
+			"logo": "https://raw.githubusercontent.com/novaspirit/pi-hosted/master/images/redmine.png",
+			"name": "redmine",
+			"platform": "linux",
+			"ports": [
+				"4180:3000/tcp"
+			],
+			"env": [
+				{
+					"default": "1000",
+					"label": "PUID",
+					"name": "PUID"
+				},
+				{
+					"default": "1000",
+					"label": "PGID",
+					"name": "PGID"
+				},
+                {
+					"default": "America/New_York",
+                    "label": "TZ",
+                    "name": "TZ"
+                },
+				{
+					"default": "redmine",
+					"label": "DATABASE_NAME",
+					"name": "DATABASE_NAME"
+				},
+				{
+					"default": "redmine",
+					"label": "DATABASE_USER",
+					"name": "DATABASE_USER"
+				},
+				{
+					"default": "",
+					"label": "DATABASE_PASSWORD",
+					"name": "DATABASE_PASSWORD"
+				},
+				{
+					"default": "",
+					"label": "MYSQL_ROOT_PASSWORD",
+					"name": "MYSQL_ROOT_PASSWORD"
+				},
+				{
+					"default": "",
+					"label": "REDMINE_SECRET_KEY_BASE",
+					"name": "REDMINE_SECRET_KEY_BASE"
+				}
+			],
+			"restart_policy": "unless-stopped",
+			"title": "Redmine",
+			"type": 3,
+			"repository": {
+				"stackfile": "stack/redmine.yml",
+				"url": "https://github.com/novaspirit/pi-hosted"
+			}
+		},
 		{
 			"categories": [
 				"Backup",