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
|
git clone https://github.com/inventaire/inventaire.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Build
|
||||||
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 !
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ services:
|
|||||||
COUCHDB_USER: "couchdb"
|
COUCHDB_USER: "couchdb"
|
||||||
COUCHDB_PASSWORD: "password"
|
COUCHDB_PASSWORD: "password"
|
||||||
volumes:
|
volumes:
|
||||||
- './data/couch:/usr/local/var/lib/couchdb'
|
- 'couchdb:/usr/local/var/lib/couchdb'
|
||||||
network_mode: host
|
network_mode: host
|
||||||
tty: true
|
tty: true
|
||||||
inventaire:
|
inventaire:
|
||||||
@@ -33,7 +33,10 @@ services:
|
|||||||
ports :
|
ports :
|
||||||
- '127.0.0.1:9200:9200'
|
- '127.0.0.1:9200:9200'
|
||||||
volumes:
|
volumes:
|
||||||
- './data/es:/usr/share/elasticsearch/data'
|
- 'elasticsearch:/usr/share/elasticsearch/data'
|
||||||
network_mode: host
|
network_mode: host
|
||||||
logging:
|
logging:
|
||||||
driver: none
|
driver: none
|
||||||
|
volumes:
|
||||||
|
couchdb:
|
||||||
|
elasticsearch:
|
||||||
Reference in New Issue
Block a user