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

70 lines
1.7 KiB
YAML
Raw Normal View History

version: '2'
services:
molgenis:
image: registry.webhosting.rug.nl/molgenis/molgenis:stable
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}"
- "admin.password=${MOLGENIS_ADMIN_PASSWORD}"
- "elasticsearch.cluster.name=${ELASTIC_CLUSTER}"
- "elasticsearch.transport.addresses=elasticsearch:9300"
labels:
io.rancher.container.pull_image: always
traefik.frontend.rule: Host:${DOMAINS}
traefik.backend: ${TRAEFIK_BACKEND}
traefik.enable: true
traefik.port: 8080
postgres:
2018-02-28 19:16:49 +01:00
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:
2018-02-28 19:16:49 +01:00
- postgres-data
ports:
- 5432
2018-02-28 19:16:49 +01:00
opencpu:
image: registry.webhosting.rug.nl/molgenis/molgenis-opencpu:stable
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
2018-02-28 19:16:49 +01:00
molgenis-data:
driver: local
elastic-data:
driver: local