move db volumes to local docker storage

to simplify deployement process
This commit is contained in:
jums
2021-02-08 12:53:00 +01:00
parent a77268b0ef
commit b0a0e6002e
2 changed files with 6 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ services:
COUCHDB_USER: "couchdb"
COUCHDB_PASSWORD: "password"
volumes:
- './data/couch:/usr/local/var/lib/couchdb'
- 'couchdb:/usr/local/var/lib/couchdb'
network_mode: host
tty: true
inventaire:
@@ -33,7 +33,10 @@ services:
ports :
- '127.0.0.1:9200:9200'
volumes:
- './data/es:/usr/share/elasticsearch/data'
- 'elasticsearch:/usr/share/elasticsearch/data'
network_mode: host
logging:
driver: none
volumes:
couchdb:
elasticsearch: