update config and readme
This commit is contained in:
13
README.md
13
README.md
@@ -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 !
|
||||
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
2
utils/config/entities-search-engine-local.coffee
Normal file
2
utils/config/entities-search-engine-local.coffee
Normal file
@@ -0,0 +1,2 @@
|
||||
elastic:
|
||||
host: 'http://elasticsearch:9200'
|
||||
@@ -1,7 +1,7 @@
|
||||
module.exports =
|
||||
host: '0.0.0.0'
|
||||
elasticsearch:
|
||||
host: '0.0.0.0'
|
||||
host: 'elasticsearch'
|
||||
port: '9200'
|
||||
db:
|
||||
protocol: 'http'
|
||||
Reference in New Issue
Block a user