docker-compose.yml: let couchdb use a named volume to store its data
See https://serverfault.com/questions/996785/docker-volumes-vs-mount-binds-what-are-the-use-cases
This commit is contained in:
@@ -8,7 +8,6 @@ services:
|
|||||||
COUCHDB_USER: "yourcouchdbusername"
|
COUCHDB_USER: "yourcouchdbusername"
|
||||||
COUCHDB_PASSWORD: "yourcouchdbpassword"
|
COUCHDB_PASSWORD: "yourcouchdbpassword"
|
||||||
volumes:
|
volumes:
|
||||||
- './data/couchdb:/opt/couchdb/data'
|
|
||||||
- './configs:/opt/couchdb/etc/local.d'
|
- './configs:/opt/couchdb/etc/local.d'
|
||||||
tty: true
|
tty: true
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
@@ -21,8 +20,6 @@ services:
|
|||||||
- 'ES_JAVA_OPTS=-Xms1g -Xmx1g'
|
- 'ES_JAVA_OPTS=-Xms1g -Xmx1g'
|
||||||
ports :
|
ports :
|
||||||
- '127.0.0.1:9200:9200'
|
- '127.0.0.1:9200:9200'
|
||||||
volumes:
|
|
||||||
- './data/elasticsearch:/usr/share/elasticsearch/data'
|
|
||||||
volumes:
|
volumes:
|
||||||
couchdb:
|
couchdb:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
Reference in New Issue
Block a user