Hi
Under creating docker compose file I have come across two vaguely described cases:
- when I need to use an external disk for example [ I have a 3 hosts with multiply ssd(/opt/ssd/ds1/hot_data/) and hdd (/opt/hdd/ds1/warm_data/) ] so through docker swarm nodes will be locked there but how I should defined this point
I saw that on elastic page it was created as local driver
(Install Elasticsearch with Docker | Elasticsearch Guide [8.0] | Elastic)
volumes:
- /opt/ssd/ds1/hot_data/:/usr/share/elasticsearch/data
- snapshots:/usr/share/elasticsearch/snapshots
networks:
- elastic
and after
volumes:
/opt/ssd/ds1/hot_data/:
driver: local
/opt/hdd/ds1/warm_data/:
driver: local