fix(traefik environment): added labels for traefik
This commit is contained in:
parent
49f38cf8da
commit
9682aa79c5
@ -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:
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user