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
|
||||
ports:
|
||||
- 8080
|
||||
links:
|
||||
- postgres
|
||||
- app
|
||||
- elasticsearch
|
||||
volumes_from:
|
||||
- molgenis-data
|
||||
volumes:
|
||||
- app-data
|
||||
environment:
|
||||
- "db_uri=jdbc:postgresql://postgres/${DB_SCHEME}?reWriteBatchedInserts=true&autosave=CONSERVATIVE"
|
||||
- "db_driver=org.postgresql.Driver"
|
||||
|
@ -24,15 +24,15 @@
|
|||
traefik.enable: true
|
||||
traefik.port: 8080
|
||||
|
||||
postgres:
|
||||
db:
|
||||
image: postgres:9.6-alpine
|
||||
environment:
|
||||
- POSTGRES_USER=molgenis
|
||||
- POSTGRES_PASSWORD=molgenis
|
||||
- POSTGRES_DB=${DB_SCHEME}
|
||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||
volumes_from:
|
||||
- postgres-data
|
||||
volumes:
|
||||
- db-data
|
||||
ports:
|
||||
- 5432
|
||||
labels:
|
||||
|
@ -58,29 +58,17 @@
|
|||
# volumes_from:
|
||||
# - elasticsearch-data
|
||||
ports:
|
||||
- 9200:9200
|
||||
- 9300:9300
|
||||
- 9200
|
||||
- 9300
|
||||
volumes:
|
||||
- es-data
|
||||
labels:
|
||||
#io.rancher.sidekicks: elasticsearch-data
|
||||
io.rancher.scheduler.global: true
|
||||
|
||||
postgres-data:
|
||||
image: busybox
|
||||
labels:
|
||||
io.rancher.container.start_once: true
|
||||
volumes:
|
||||
- /var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
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