forked from kristjan/cjvt-valency
stack config
This commit is contained in:
27
README.md
27
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user