1
0
Fork 0
molgenis-ops-rancher/templates/molgenis/0/docker-compose.yml

73 lines
1.8 KiB
YAML

version: '2'
services:
molgenis:
image: registry.webhosting.rug.nl/molgenis/molgenis:latest
ports:
- 8080
links:
- postgres
- elasticsearch
volumes:
- molgenis-data
environment:
- "db_uri=jdbc:postgresql://postgres/${DB_SCHEME}?reWriteBatchedInserts=true&autosave=CONSERVATIVE"
- "db_driver=org.postgresql.Driver"
- "db_user=${DB_USERNAME}"
- "db_password=${DB_PASSWORD}"
- "molgenis.home=${MOLGENIS_HOME_DIR}"
- "admin.password=${MOLGENIS_ADMIN_PASSWORD}"
- "opencpu.uri.port=8004"
- "elasticsearch.cluster.name=${ELASTIC_CLUSTER}"
- "elasticsearch.transport.addresses=elasticsearch:9300"
- "JAVA_OPTS=-Xmx${JVM_MEM_POOL} -Xms${JVM_MEM_POOL} -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"
labels:
io.rancher.container.pull_image: always
traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true
traefik.port: 8080
postgres:
image: postgres:9.6-alpine
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_SCHEME}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- postgres-data
ports:
- 5432
opencpu:
image: registry.webhosting.rug.nl/molgenis/molgenis-opencpu:latest
ports:
- 8004
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1
environment:
- "cluster.name=${ELASTIC_CLUSTER}"
- "bootstrap.memory_lock=true"
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "xpack.security.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200
- 9300
volumes:
- elastic-data
volumes:
postgres-data:
driver: local
molgenis-data:
driver: local
elastic-data:
driver: local