update config and readme

This commit is contained in:
Vincent Jumo
2018-07-21 13:22:41 +02:00
parent 7fee76df32
commit f0a29f2e77
4 changed files with 7 additions and 12 deletions

View File

@@ -5,11 +5,8 @@ Run your own inventaire in a docker environment
- [docker-compose](https://docs.docker.com/compose/gettingstarted/) up and ready
- git
## Install
Clone this repo
```
git clone https://github.com/inventaire/inventaire-docker.git
```
@@ -18,20 +15,14 @@ got to `cd inventaire-docker`
clone the two repos inventaire needs to run :
- `inventaire` -> [setup](https://github.com/inventaire/inventaire#installation)
- `entities-search-engine` -> [go to repo](https://github.com/inventaire/entities-search-engine)
- `inventaire` core application server -> [setup](https://github.com/inventaire/inventaire#installation)
- `entities-search-engine` for querying entities -> [go to repo](https://github.com/inventaire/entities-search-engine)
```
git clone https://github.com/inventaire/inventaire.git
git clone https://github.com/inventaire/entities-search-engine.git
```
Copy docker utils files into inventaire folder if necessary
```
cp (or ln) utils/config/local.coffee inventaire/config/local.coffee
```
Start the magic, build everything at once !
```

View File

@@ -14,6 +14,7 @@ services:
- "3006:3006"
volumes:
- ./inventaire:/opt/inventaire
- ./utils/config/inventaire-local.coffee:/opt/inventaire/config/local.coffee
links:
- couch
working_dir: /opt/inventaire
@@ -33,6 +34,7 @@ services:
- "3213:3213"
volumes:
- ./entities-search-engine:/opt/entities-search-engine
- ./utils/config/entities-search-engine-local.coffee:/opt/entities-search-engine/config/local.coffee
links:
- couch
working_dir: /opt/entities-search-engine

View File

@@ -0,0 +1,2 @@
elastic:
host: 'http://elasticsearch:9200'

View File

@@ -1,7 +1,7 @@
module.exports =
host: '0.0.0.0'
elasticsearch:
host: '0.0.0.0'
host: 'elasticsearch'
port: '9200'
db:
protocol: 'http'