Updated the template to use version 2 and templatized mongo on whether an external link is provided
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
version: '2'
|
||||
services:
|
||||
wekan:
|
||||
image: mquandalle/wekan
|
||||
restart: always
|
||||
labels:
|
||||
traefik.enable: true
|
||||
traefik.alias: ${WEKAN_HOST}
|
||||
traefik.domain: ${WEKAN_DOMAIN}
|
||||
traefik.acme: true
|
||||
traefik.port: 80
|
||||
{{- if ne .Values.host_label ""}}
|
||||
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||
{{- end}}
|
||||
environment:
|
||||
MONGO_URL: "mongodb://mongo/${MONGO_DB}"
|
||||
ROOT_URL: "http://${WEKAN_HOST}.${WEKAN_DOMAIN}"
|
||||
{{- if ne .Values.mongo_link ""}}
|
||||
external_links:
|
||||
- ${mongo_link}:mongo
|
||||
tty: true
|
||||
{{- else}}
|
||||
mongo:
|
||||
command: mongod --storageEngine=wiredTiger
|
||||
restart: always
|
||||
environment:
|
||||
MONGO_SERVICE_NAME: mongo
|
||||
CATTLE_SCRIPT_DEBUG: ${debug}
|
||||
tty: true
|
||||
image: mongo:3.4
|
||||
labels:
|
||||
io.rancher.container.hostname_override: container_name
|
||||
{{- if ne .Values.host_label ""}}
|
||||
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||
{{- end}}
|
||||
volumes:
|
||||
- mongodata:/data/db
|
||||
volumes:
|
||||
mongodata:
|
||||
driver: ${VOLUME_DRIVER}
|
||||
per_container: true
|
||||
{{- end}}
|
||||
Reference in New Issue
Block a user