1
0
Fork 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:
- app-data:/opt/molgenis
labels:
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.global: 'true'
io.rancher.container.create_agent: true
io.rancher.scheduler.global: true
traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true
traefik.port: 8080
db:
build: ./db
expose:
- 5432
volumes:
- 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
default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
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
scale: 1

View File

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

View File

@ -10,6 +10,12 @@
required: true
default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
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
scale: 1

View File

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

View File

@ -10,6 +10,12 @@
required: true
default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
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
scale: 1

View File

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

View File

@ -10,6 +10,12 @@
required: true
default: "test.molgenis.org,test.dcktest.gcc.rug.nl"
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
scale: 1