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

@@ -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

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: