Merge branch 'develop/rocketchat'
This commit is contained in:
@@ -1 +1,3 @@
|
|||||||
# RocketChat
|
# RocketChat
|
||||||
|
|
||||||
|
https://store.docker.com/_/rocketchat
|
||||||
@@ -1,36 +1,77 @@
|
|||||||
mongo:
|
version: '2'
|
||||||
image: mongo
|
|
||||||
# volumes:
|
|
||||||
# - ./data/runtime/db:/data/db
|
|
||||||
# - ./data/dump:/dump
|
|
||||||
command: mongod --smallfiles --oplogSize 128
|
|
||||||
|
|
||||||
rocketchat:
|
services:
|
||||||
image: rocketchat/rocket.chat:latest
|
hubot:
|
||||||
# volumes:
|
image: rocketchat/hubot-rocketchat:latest
|
||||||
# - ./uploads:/app/uploads
|
dns: # Using Cloudflare DNS
|
||||||
|
- 1.1.1.1
|
||||||
|
- 1.0.0.1
|
||||||
environment:
|
environment:
|
||||||
- PORT=3000
|
ROCKETCHAT_URL: hubot.${TRAEFIK_HOST}
|
||||||
- ROOT_URL=http://yourhost:3000
|
ROCKETCHAT_ROOM: GENERAL
|
||||||
- MONGO_URL=mongodb://mongo:27017/rocketchat
|
ROCKETCHAT_USER: Hubot
|
||||||
links:
|
ROCKETCHAT_PASSWORD: BotPassw0rd
|
||||||
- mongo:mongo
|
BOT_NAME: Hubot
|
||||||
ports:
|
EXTERNAL_SCRIPTS: hubot-help,hubot-seen,hubot-links,hubot-greetings
|
||||||
- 3000:3000
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
|
{{- if .Values.HOST_LABEL}}
|
||||||
hubot:
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
image: rocketchat/hubot-rocketchat
|
{{- end}}
|
||||||
environment:
|
traefik.enable: true
|
||||||
- ROCKETCHAT_URL=rocketchat:3000
|
### Start Hubot Segment
|
||||||
- ROCKETCHAT_ROOM=GENERAL
|
traefik.hubot.frontend.entryPoints: http,https
|
||||||
- ROCKETCHAT_USER=bot
|
traefik.hubot.frontend.headers.forceSTSHeader: true
|
||||||
- ROCKETCHAT_PASSWORD=botpassword
|
traefik.hubot.frontend.headers.referrerPolicy: no-referrer # Security enhancement (Prevents leaking of referer information)
|
||||||
- BOT_NAME=bot
|
traefik.hubot.frontend.headers.SSLRedirect: true
|
||||||
# you can add more scripts as you'd like here, they need to be installable by npm
|
traefik.hubot.frontend.headers.STSPreload: true
|
||||||
- EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
|
traefik.hubot.frontend.headers.STSSeconds: 15552000
|
||||||
|
traefik.hubot.frontend.passHostHeader: true
|
||||||
|
traefik.hubot.frontend.rule: Host:${TRAEFIK_HOST}
|
||||||
|
traefik.hubot.port: "8080"
|
||||||
|
### End Hubot Segment
|
||||||
links:
|
links:
|
||||||
- rocketchat:rocketchat
|
- rocketchat:rocketchat
|
||||||
# this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
|
mongo:
|
||||||
ports:
|
image: mongo:latest
|
||||||
- 3001:8080
|
dns: # Using Cloudflare DNS
|
||||||
|
- 1.1.1.1
|
||||||
|
- 1.0.0.1
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
|
{{- if .Values.HOST_LABEL}}
|
||||||
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
|
{{- end}}
|
||||||
|
traefik.enable: false
|
||||||
|
volumes:
|
||||||
|
- /RancherCattle/${DATA_DIR}/Database/Data:/data/db
|
||||||
|
- /RancherCattle/${DATA_DIR}/Database/Dump:/dump
|
||||||
|
command: mongod --smallfiles
|
||||||
|
rocketchat:
|
||||||
|
image: rocketchat/rocket.chat:latest
|
||||||
|
dns: # Using Cloudflare DNS
|
||||||
|
- 1.1.1.1
|
||||||
|
- 1.0.0.1
|
||||||
|
environment:
|
||||||
|
MONGO_URL: mongodb://mongo:27017/rocketchat
|
||||||
|
ROOT_URL: https://${TRAEFIK_HOST}
|
||||||
|
Accounts_UseDNSDomainCheck: true
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
|
{{- if .Values.HOST_LABEL}}
|
||||||
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
|
{{- end}}
|
||||||
|
traefik.enable: true
|
||||||
|
### Start RocketChat Segment
|
||||||
|
traefik.rocketchat.frontend.entryPoints: http,https
|
||||||
|
traefik.rocketchat.frontend.headers.forceSTSHeader: true
|
||||||
|
traefik.rocketchat.frontend.headers.referrerPolicy: no-referrer # Security enhancement (Prevents leaking of referer information)
|
||||||
|
traefik.rocketchat.frontend.headers.SSLRedirect: true
|
||||||
|
traefik.rocketchat.frontend.headers.STSPreload: true
|
||||||
|
traefik.rocketchat.frontend.headers.STSSeconds: 15552000
|
||||||
|
traefik.rocketchat.frontend.passHostHeader: true
|
||||||
|
traefik.rocketchat.frontend.rule: Host:${TRAEFIK_HOST}
|
||||||
|
traefik.rocketchat.port: "3000"
|
||||||
|
### End RocketChat Segment
|
||||||
|
links:
|
||||||
|
- mongo:mongo
|
||||||
@@ -6,7 +6,28 @@ catalog:
|
|||||||
# minimum_rancher_version:
|
# minimum_rancher_version:
|
||||||
# maximum_rancher_version:
|
# maximum_rancher_version:
|
||||||
# upgrade_from:
|
# upgrade_from:
|
||||||
uuid: rocketchat-0
|
|
||||||
questions:
|
questions:
|
||||||
|
|
||||||
rocketchat:
|
- variable: "HOST_LABEL"
|
||||||
|
label: "Host Label Key/Value Pair"
|
||||||
|
description: |
|
||||||
|
The Label Key/Value pair of the host which containers should be deployed
|
||||||
|
default: "host.id=Host1"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: "TRAEFIK_HOST"
|
||||||
|
label: "Public Host Domain"
|
||||||
|
description: |
|
||||||
|
The host that Traefik will use to provide public access.
|
||||||
|
default: "subdomain.domain.tld"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: "DATA_DIR"
|
||||||
|
label: "Data Directory"
|
||||||
|
description: |
|
||||||
|
The directory to store persistent data for the stack.
|
||||||
|
default: "Personal/RocketChat"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
name: RocketChat
|
name: RocketChat
|
||||||
description: |
|
description: |
|
||||||
Status: NOT READY
|
Status: NOT READY
|
||||||
# version:
|
version: latest
|
||||||
category: Communication
|
category: Communication
|
||||||
maintainer: WilliamMiceli
|
maintainer: WilliamMiceli
|
||||||
# license:
|
# license:
|
||||||
|
|||||||
Reference in New Issue
Block a user