2018-03-17 21:49:33 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
2018-03-17 21:42:53 +01:00
|
|
|
molgenis:
|
2018-03-15 00:25:21 +01:00
|
|
|
image: registry.webhosting.rug.nl/molgenis/molgenis:latest
|
2018-03-15 00:20:13 +01:00
|
|
|
ports:
|
|
|
|
- 8080
|
|
|
|
links:
|
2018-03-17 21:59:29 +01:00
|
|
|
- postgres
|
2018-03-15 00:20:13 +01:00
|
|
|
- elasticsearch
|
2018-03-17 21:34:02 +01:00
|
|
|
volumes:
|
2018-03-17 21:42:53 +01:00
|
|
|
- molgenis-data
|
2018-03-15 00:20:13 +01:00
|
|
|
environment:
|
2018-03-15 10:09:50 +01:00
|
|
|
- "db_uri=jdbc:postgresql://postgres/${DB_SCHEME}?reWriteBatchedInserts=true&autosave=CONSERVATIVE"
|
2018-03-15 00:20:13 +01:00
|
|
|
- "db_driver=org.postgresql.Driver"
|
2018-03-17 22:08:07 +01:00
|
|
|
- "db_user=${DB_USERNAME}"
|
2018-03-17 21:59:29 +01:00
|
|
|
- "db_password=${DB_PASSWORD}"
|
|
|
|
- "admin.password={MOLGENIS_ADMIN_PASSWORD}"
|
2018-03-15 10:09:50 +01:00
|
|
|
- "elasticsearch.cluster.name=${ELASTIC_CLUSTER}"
|
2018-03-15 00:20:13 +01:00
|
|
|
- "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
|
|
|
|
|
2018-03-17 21:42:53 +01:00
|
|
|
postgres:
|
2018-03-15 00:20:13 +01:00
|
|
|
image: postgres:9.6-alpine
|
|
|
|
environment:
|
2018-03-17 22:08:07 +01:00
|
|
|
- POSTGRES_USER=${DB_USERNAME}
|
2018-03-17 21:59:29 +01:00
|
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
2018-03-15 10:09:50 +01:00
|
|
|
- POSTGRES_DB=${DB_SCHEME}
|
2018-03-15 00:20:13 +01:00
|
|
|
- PGDATA=/var/lib/postgresql/data/pgdata
|
2018-03-17 21:34:02 +01:00
|
|
|
volumes:
|
2018-03-17 21:42:53 +01:00
|
|
|
- postgres-data
|
2018-03-15 00:20:13 +01:00
|
|
|
ports:
|
|
|
|
- 5432
|
|
|
|
|
|
|
|
opencpu:
|
2018-03-15 00:25:21 +01:00
|
|
|
image: registry.webhosting.rug.nl/molgenis/molgenis-opencpu:latest
|
2018-03-15 00:20:13 +01:00
|
|
|
ports:
|
2018-03-17 22:23:23 +01:00
|
|
|
- 8004
|
2018-03-15 00:20:13 +01:00
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1
|
|
|
|
environment:
|
2018-03-15 10:09:50 +01:00
|
|
|
- "cluster.name=${ELASTIC_CLUSTER}"
|
2018-03-15 00:20:13 +01:00
|
|
|
- "bootstrap.memory_lock=true"
|
|
|
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
|
|
- "xpack.security.enabled=false"
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
ports:
|
2018-03-17 21:34:02 +01:00
|
|
|
- 9200
|
|
|
|
- 9300
|
|
|
|
volumes:
|
2018-03-17 21:42:53 +01:00
|
|
|
- elastic-data
|
2018-03-15 00:20:13 +01:00
|
|
|
|
2018-03-17 21:34:02 +01:00
|
|
|
volumes:
|
2018-03-17 21:49:33 +01:00
|
|
|
postgres-data:
|
2018-03-17 22:23:23 +01:00
|
|
|
driver: local
|
2018-03-17 21:49:33 +01:00
|
|
|
molgenis-data:
|
2018-03-17 22:23:23 +01:00
|
|
|
driver: local
|
2018-03-17 21:49:33 +01:00
|
|
|
elastic-data:
|
|
|
|
driver: local
|
2018-03-15 00:20:13 +01:00
|
|
|
|