diff --git a/templates/redmine/0/docker-compose.yml b/templates/redmine/0/docker-compose.yml new file mode 100644 index 0000000..1389433 --- /dev/null +++ b/templates/redmine/0/docker-compose.yml @@ -0,0 +1,45 @@ +version: '2' +services: + redmine: + image: sameersbn/redmine:3.3.2-1 + labels: + io.rancher.container.hostname_override: container_name + io.rancher.container.pull_image: always + traefik.enable: true + traefik.alias: ${REDMINE_HOST} + traefik.domain: ${REDMINE_DOMAIN} + traefik.acme: true + traefik.port: 80 + environment: + - PORT=80 + - TZ=${TZ} + - DB_PASS=${DB_PASS} + - DB_ADAPTER=mysql2 + - DB_HOST=db + - DB_USER=redmine + - DB_NAME=redmine_production + - REDMINE_SECRET_TOKEN=${REDMINE_SECRET_TOKEN} + - SMTP_ENABLED=false + - IMAP_ENABLED=false + volumes: + - redminedata:/home/redmine/data + - redminelog:/var/log/redmine + db: + restart: always + image: mariadb:10.2 + volumes: + - redminedbdata:/var/lib/mysql + labels: + io.rancher.container.pull_image: always + environment: + - MYSQL_USER=redmine + - MYSQL_PASSWORD=${DB_PASS} + - MYSQL_ROOT_PASSWORD=${DB_PASS} + - MYSQL_DATABASE=redmine_production +volumes: + redminedata: + driver: ${VOLUME_DRIVER} + redminelog: + driver: ${VOLUME_DRIVER} + redminedbdata: + driver: ${VOLUME_DRIVER} diff --git a/templates/redmine/0/rancher-compose.yml b/templates/redmine/0/rancher-compose.yml new file mode 100644 index 0000000..d8effe1 --- /dev/null +++ b/templates/redmine/0/rancher-compose.yml @@ -0,0 +1,61 @@ +version: '2' +catalog: + name: Redmine + version: 0.1.2 + description: | + Redmine + questions: + - variable: "REDMINE_HOST" + description: "Hostname to use for the Redmine" + label: "Thalhalla Store Hostname" + required: true + default: "redmine" + type: "string" + - variable: "REDMINE_DOMAIN" + description: "Domain to use for the Redmine server" + label: "REDMINE Domain" + required: true + default: "" + type: "string" + - variable: "TZ" + description: "Timezone to use for the server" + label: "Timezone" + required: true + default: "America/Chicago" + type: "string" + - variable: "DB_PASS" + description: "Database Password to use for the server" + label: "DB Password" + required: true + default: "" + type: "password" + - variable: "REDMINE_SECRET_TOKEN" + description: "REDMINE_SECRET_TOKEN" + label: "REDMINE_SECRET_TOKEN" + required: true + default: "" + type: "password" + - variable: "VOLUME_DRIVER" + description: "The VOLUME driver to associate with this server" + label: "VOLUME Driver" + required: true + default: "rancher-nfs" + type: enum + options: + - local + - rancher-nfs + - rancher-efs + - rancher-ebs + +services: + redmine: + scale: 1 + retain_ip: true + health_check: + healthy_threshold: 2 + response_timeout: 5000 + port: 80 + unhealthy_threshold: 3 + interval: 5000 + strategy: recreate + request_line: GET / # HTTP/1.0 diff --git a/templates/redmine/README.md b/templates/redmine/README.md new file mode 100644 index 0000000..7f7aaae --- /dev/null +++ b/templates/redmine/README.md @@ -0,0 +1,11 @@ +[Redmine](https://www.redmine.org/) + +Redmine is a flexible project management web application. Written using +the Ruby on Rails framework, it is cross-platform and cross-database. + +This rancher template should get you a redmine container up and running +to test. To see other implementations, including postgres, and using convoy for persistent data see +the catalog [here](https://github.com/webhostingcoopteam/whc-catalog) + +For external access you'll need to setup [traefik](https://github.com/rancher/community-catalog/tree/master/templates/traefik), all the appropriate +labels will be set when you set the hostname and domain below diff --git a/templates/redmine/catalogIcon-redmine.png b/templates/redmine/catalogIcon-redmine.png new file mode 100644 index 0000000..e962805 Binary files /dev/null and b/templates/redmine/catalogIcon-redmine.png differ diff --git a/templates/redmine/config.yml b/templates/redmine/config.yml new file mode 100644 index 0000000..453bbcd --- /dev/null +++ b/templates/redmine/config.yml @@ -0,0 +1,5 @@ +name: Redmine +description: | + Redmine Project Manager +version: 0.1.2 +category: Project Management