1
0

Merge branch 'add-health-checks' of p281392/molgenis-ops-rancher into master

This commit is contained in:
Sido Haakma 2018-04-20 06:29:17 +00:00 committed by Gogs
commit 4746ecbb4a
4 changed files with 33 additions and 30 deletions

View File

@ -1,25 +1,38 @@
version: '2' version: '2.1'
services: services:
jenkins: jenkins-master:
image: jenkins/jenkins:lts image: jenkinsci/blueocean:latest
ports: ports:
- 8080 - 8080
- 50000
volumes: volumes:
- molgenis-jenkins:/var/jenkins_home - molgenis-jenkins:/var/jenkins_home
restart: always
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
traefik.frontend.rule: Host:${DOMAINS} traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND} traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true traefik.enable: true
traefik.port: 8080 traefik.port: 8080
healthcheck:
test: ["CMD", "curl", "-sS", "http://localhost:50000" ]
interval: 5s
timeout: 10s
retries: 5
jenkins-agent-buildtools: jenkins-agent-maven:
image: registry.molgenis.org/docker-molgenis-ops-releases/jenkins-agent-buildtools:latest image: registry.molgenis.org/docker-molgenis-ops-releases/jenkins-agent-buildtools:lts
ports: environment:
- 22 - JENKINS_URL=http://localhost:8080
- JENKINS_SECRET=paradoxa
- JENKINS_AGENT_NAME=buildtools
volumes: volumes:
- molgenis-jenkins-agent-buildtools:/var/jenkins_home - molgenis-jenkins-agent-buildtools:/var/jenkins_home
depends_on:
jenkins-master:
condition: service_healthy
restart: always
volumes: volumes:
molgenis-jenkins: molgenis-jenkins:

View File

@ -16,13 +16,3 @@
required: true required: true
default: "test.molgenis.org" default: "test.molgenis.org"
type: "string" type: "string"
start_on_create: true
scale: 1
health_check:
port: 8080
interval: 5000
unhealthy_threshold: 3
request_line: 'GET / HTTP/1.0'
healthy_threshold: 2
response_timeout: 5000

View File

@ -2,7 +2,7 @@ version: '2'
services: services:
molgenis: molgenis:
image: registry.webhosting.rug.nl/molgenis/molgenis:latest image: registry.molgenis.org/molgenis/molgenis:latest
ports: ports:
- 8080 - 8080
links: links:
@ -39,11 +39,21 @@ services:
- postgres-data - postgres-data
ports: ports:
- 5432 - 5432
healthcheck:
test: ["CMD", "curl", "sS", "http://localhost:8080"]
interval: 5s
timeout: 10s
retries: 5
opencpu: opencpu:
image: registry.webhosting.rug.nl/molgenis/molgenis-opencpu:latest image: registry.molgenis.org/molgenis/molgenis-opencpu:latest
ports: ports:
- 8004 - 8004
healthcheck:
test: ["CMD", "curl", "sS", "http://localhost:8084"]
interval: 5s
timeout: 10s
retries: 5
elasticsearch: elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1 image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1

View File

@ -52,13 +52,3 @@
required: true required: true
default: "2g" default: "2g"
type: "string" type: "string"
start_on_create: true
scale: 1
health_check:
port: 8080
interval: 5000
unhealthy_threshold: 3
request_line: 'GET / HTTP/1.0'
healthy_threshold: 2
response_timeout: 5000