|
|
|
@ -144,3 +144,28 @@ All set, now run the stack.
|
|
|
|
|
# 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.
|
|
|
|
|