From dfd74941d164ab5476391ed45ef67aed13e218d1 Mon Sep 17 00:00:00 2001 From: Robert Middleswarth <72569+rmiddle@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:08:59 -0500 Subject: [PATCH] Add redmine to the template list. (#268) --- pi-hosted_template/template/portainer-v2.json | 64 +++++++++++++++++++ stack/redmine.yml | 53 +++++++++++++++ template/portainer-v2-arm32.json | 64 +++++++++++++++++++ template/portainer-v2-arm64.json | 64 +++++++++++++++++++ 4 files changed, 245 insertions(+) create mode 100644 stack/redmine.yml diff --git a/pi-hosted_template/template/portainer-v2.json b/pi-hosted_template/template/portainer-v2.json index 62ac9e9..7f85328 100644 --- a/pi-hosted_template/template/portainer-v2.json +++ b/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", diff --git a/stack/redmine.yml b/stack/redmine.yml new file mode 100644 index 0000000..d82f7d4 --- /dev/null +++ b/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: diff --git a/template/portainer-v2-arm32.json b/template/portainer-v2-arm32.json index 9ec3b2e..2b12580 100644 --- a/template/portainer-v2-arm32.json +++ b/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", diff --git a/template/portainer-v2-arm64.json b/template/portainer-v2-arm64.json index 3bb26d1..2124fc5 100644 --- a/template/portainer-v2-arm64.json +++ b/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",