move db volumes to local docker storage
to simplify deployement process
This commit is contained in:
@@ -20,14 +20,7 @@ clone `inventaire` core application server -> [setup](https://github.com/inventa
|
||||
git clone https://github.com/inventaire/inventaire.git
|
||||
```
|
||||
|
||||
|
||||
Create empty folders for docker volumes to set themselves.
|
||||
|
||||
In accordance with docker-compose volumes, example: `mkdir data couch-test couch es`.
|
||||
|
||||
Ensure the owner ID of those folders is 1000: `chown -R 1000:1000`.
|
||||
|
||||
Start the magic, build everything !
|
||||
Build
|
||||
|
||||
```bash
|
||||
docker-compose build
|
||||
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user