Merge pull request #463 from joshuacox/redmine

Added redmine
This commit is contained in:
Raúl Sánchez 2017-07-18 15:17:39 +02:00 committed by GitHub
commit 407ff595e6
5 changed files with 122 additions and 0 deletions

View File

@ -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}

View File

@ -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

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -0,0 +1,5 @@
name: Redmine
description: |
Redmine Project Manager
version: 0.1.2
category: Project Management