stack config

This commit is contained in:
2019-05-06 22:10:33 +02:00
parent 155c0b2c3d
commit ef02583d72
4 changed files with 44 additions and 4 deletions

View File

@@ -143,4 +143,29 @@ All set, now run the stack.
```bash
# From git root
$ make deploy-prod-stack
```
```
### Uploading a mongo dump
There's a 15GB mongo dump containing the fully processed kres and ssj data.
We can use that file to deploy our aplication.
Check `0.0.0.0:8081` and remove (or backup) the current example database `valdb`.
Run the stack with mongo port mapped:
(uncomment the lines in `production.yaml`)
```yml
ports:
- 27017:27017
```
Run a separate my-mongo container with the mounted data:
```bash
$ mongo run -it --net host -v <local_dump_path>/dumps my-mongo /bin/bash
```
Inside the container (edit the uesrname, password):
```bash
$ mongorestore /dumps/valdb --db valdb --uri=mongodb://valuser:valuserpass@0.0.0.0:27017
```
After uploading, restart the stack with `27017` commented out.