1
0

fix(traefik environment): added labels for traefik

This commit is contained in:
sido 2018-03-09 10:46:39 +01:00
parent 49f38cf8da
commit 9682aa79c5
8 changed files with 36 additions and 7 deletions

View File

@ -7,16 +7,15 @@ app:
volumes: volumes:
- app-data:/opt/molgenis - app-data:/opt/molgenis
labels: labels:
io.rancher.container.create_agent: 'true' io.rancher.container.create_agent: true
io.rancher.scheduler.global: 'true' io.rancher.scheduler.global: true
traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true
traefik.port: 8080
db: db:
build: ./db build: ./db
expose: expose:
- 5432 - 5432
volumes: volumes:
- db-data:/var/lib/postgresql/data - db-data:/var/lib/postgresql/data
labels:
io.rancher.container.create_agent: 'true'
volumes:
db-data:
app-data:

View File

@ -10,6 +10,12 @@
required: true required: true
default: "test.molgenis.org,test.dcktest.gcc.rug.nl" default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
type: "string" type: "string"
- variable: "TRAEFIK_BACKEND"
description: "Name of the server when added to loadbalancer"
label: "Backend:"
required: true
default: "test.molgenis.org"
type: "string"
start_on_create: true start_on_create: true
scale: 1 scale: 1

View File

@ -9,6 +9,10 @@ app:
labels: labels:
io.rancher.sidekicks: molgenis-data io.rancher.sidekicks: molgenis-data
io.rancher.scheduler.global: true io.rancher.scheduler.global: true
traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true
traefik.port: 8080
db: db:
image: postgres:9.6-alpine image: postgres:9.6-alpine

View File

@ -10,6 +10,12 @@
required: true required: true
default: "test.molgenis.org,test.dcktest.gcc.rug.nl" default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
type: "string" type: "string"
- variable: "TRAEFIK_BACKEND"
description: "Name of the server when added to loadbalancer"
label: "Backend:"
required: true
default: "test.molgenis.org"
type: "string"
start_on_create: true start_on_create: true
scale: 1 scale: 1

View File

@ -12,6 +12,7 @@
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
io.rancher.scheduler.global: true io.rancher.scheduler.global: true
traefik.frontend.rule: Host:${DOMAINS} traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true traefik.enable: true
traefik.port: 8080 traefik.port: 8080

View File

@ -10,6 +10,12 @@
required: true required: true
default: "test.molgenis.org,test.dcktest.gcc.rug.nl" default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
type: "string" type: "string"
- variable: "TRAEFIK_BACKEND"
description: "Name of the server when added to loadbalancer"
label: "Backend:"
required: true
default: "test.molgenis.org"
type: "string"
start_on_create: true start_on_create: true
scale: 1 scale: 1

View File

@ -12,6 +12,7 @@
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
io.rancher.scheduler.global: true io.rancher.scheduler.global: true
traefik.frontend.rule: Host:${DOMAINS} traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true traefik.enable: true
traefik.port: 8080 traefik.port: 8080

View File

@ -10,6 +10,12 @@
required: true required: true
default: "test.molgenis.org,test.dcktest.gcc.rug.nl" default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
type: "string" type: "string"
- variable: "TRAEFIK_BACKEND"
description: "Name of the server when added to loadbalancer"
label: "Backend:"
required: true
default: "test.molgenis.org"
type: "string"
start_on_create: true start_on_create: true
scale: 1 scale: 1