feat(docker-compose): moved back to volume mappings
This commit is contained in:
parent
6177319164
commit
9f5f3f0806
|
@ -1,12 +1,12 @@
|
||||||
molgenis:
|
app:
|
||||||
image: registry.webhosting.rug.nl/molgenis/molgenis:latest
|
image: registry.webhosting.rug.nl/molgenis/molgenis:latest
|
||||||
ports:
|
ports:
|
||||||
- 8080
|
- 8080
|
||||||
links:
|
links:
|
||||||
- postgres
|
- app
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
volumes_from:
|
volumes:
|
||||||
- molgenis-data
|
- app-data
|
||||||
environment:
|
environment:
|
||||||
- "db_uri=jdbc:postgresql://postgres/${DB_SCHEME}?reWriteBatchedInserts=true&autosave=CONSERVATIVE"
|
- "db_uri=jdbc:postgresql://postgres/${DB_SCHEME}?reWriteBatchedInserts=true&autosave=CONSERVATIVE"
|
||||||
- "db_driver=org.postgresql.Driver"
|
- "db_driver=org.postgresql.Driver"
|
||||||
|
@ -24,15 +24,15 @@
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
traefik.port: 8080
|
traefik.port: 8080
|
||||||
|
|
||||||
postgres:
|
db:
|
||||||
image: postgres:9.6-alpine
|
image: postgres:9.6-alpine
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=molgenis
|
- POSTGRES_USER=molgenis
|
||||||
- POSTGRES_PASSWORD=molgenis
|
- POSTGRES_PASSWORD=molgenis
|
||||||
- POSTGRES_DB=${DB_SCHEME}
|
- POSTGRES_DB=${DB_SCHEME}
|
||||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||||
volumes_from:
|
volumes:
|
||||||
- postgres-data
|
- db-data
|
||||||
ports:
|
ports:
|
||||||
- 5432
|
- 5432
|
||||||
labels:
|
labels:
|
||||||
|
@ -58,29 +58,17 @@
|
||||||
# volumes_from:
|
# volumes_from:
|
||||||
# - elasticsearch-data
|
# - elasticsearch-data
|
||||||
ports:
|
ports:
|
||||||
- 9200:9200
|
- 9200
|
||||||
- 9300:9300
|
- 9300
|
||||||
|
volumes:
|
||||||
|
- es-data
|
||||||
labels:
|
labels:
|
||||||
#io.rancher.sidekicks: elasticsearch-data
|
#io.rancher.sidekicks: elasticsearch-data
|
||||||
io.rancher.scheduler.global: true
|
io.rancher.scheduler.global: true
|
||||||
|
|
||||||
postgres-data:
|
|
||||||
image: busybox
|
|
||||||
labels:
|
|
||||||
io.rancher.container.start_once: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/postgresql/data/pgdata
|
db-data:
|
||||||
|
app-data:
|
||||||
|
es-data:
|
||||||
|
driver: local
|
||||||
|
|
||||||
molgenis-data:
|
|
||||||
image: busybox
|
|
||||||
labels:
|
|
||||||
io.rancher.container.start_once: true
|
|
||||||
volumes:
|
|
||||||
- /opt/molgenis
|
|
||||||
|
|
||||||
# elasticsearch-data:
|
|
||||||
# image: busybox
|
|
||||||
# labels:
|
|
||||||
# io.rancher.container.start_once: true
|
|
||||||
# volumes:
|
|
||||||
# - /usr/share/elasticsearch/data
|
|
||||||
|
|
Loading…
Reference in New Issue