Update the READMEs after setting up a couple of portals.
This commit is contained in:
parent
482f9655c4
commit
6971b3938b
|
@ -32,11 +32,11 @@ Mongo needs a couple of extra steps in order to start a secure cluster.
|
||||||
|
|
||||||
- Open port 27017 on all nodes that will take part in the cluster. Ideally, you would only open the port for the other
|
- Open port 27017 on all nodes that will take part in the cluster. Ideally, you would only open the port for the other
|
||||||
nodes in the cluster.
|
nodes in the cluster.
|
||||||
- Manually run an initialisation `docker run` with extra environment variables that will initialise the admin user with
|
|
||||||
a password (example below).
|
|
||||||
- Manually add a `mgkey` file under `./docker/data/mongo` with the respective secret (
|
- Manually add a `mgkey` file under `./docker/data/mongo` with the respective secret (
|
||||||
see [Mongo's keyfile access control](https://docs.mongodb.com/manual/tutorial/enforce-keyfile-access-control-in-existing-replica-set/)
|
see [Mongo's keyfile access control](https://docs.mongodb.com/manual/tutorial/enforce-keyfile-access-control-in-existing-replica-set/)
|
||||||
for details).
|
for details).
|
||||||
|
- Manually run an initialisation `docker run` with extra environment variables that will initialise the admin user with
|
||||||
|
a password (example below).
|
||||||
- During the initialisation run mentioned above, we need to make two extra steps within the container:
|
- During the initialisation run mentioned above, we need to make two extra steps within the container:
|
||||||
- Change the ownership of `mgkey` to `mongodb:mongodb`
|
- Change the ownership of `mgkey` to `mongodb:mongodb`
|
||||||
- Change its permissions to 400
|
- Change its permissions to 400
|
||||||
|
|
|
@ -33,6 +33,8 @@ You may want to fork this repository and replace ssh keys in
|
||||||
1. `apt-get update && apt-get install sudo -y` to make sure `sudo` is available
|
1. `apt-get update && apt-get install sudo -y` to make sure `sudo` is available
|
||||||
1. `adduser user` to create user called `user` (creates `/home/user` directory)
|
1. `adduser user` to create user called `user` (creates `/home/user` directory)
|
||||||
1. `usermod -aG sudo user` to add this new user to sudo group
|
1. `usermod -aG sudo user` to add this new user to sudo group
|
||||||
|
1. `sudo groupadd docker` to create a group for docker (it might already exist)
|
||||||
|
1. `sudo usermod -aG docker user` to add your user to that group
|
||||||
1. Quit the ssh session with `exit` command
|
1. Quit the ssh session with `exit` command
|
||||||
|
|
||||||
You a can now ssh into your machine as the user `user`.
|
You a can now ssh into your machine as the user `user`.
|
||||||
|
@ -47,6 +49,7 @@ You a can now ssh into your machine as the user `user`.
|
||||||
|
|
||||||
1. `sudo apt-get install git -y` to install git
|
1. `sudo apt-get install git -y` to install git
|
||||||
1. `git clone https://github.com/NebulousLabs/skynet-webportal`
|
1. `git clone https://github.com/NebulousLabs/skynet-webportal`
|
||||||
|
1. `cd skynet-webportal`
|
||||||
1. run setup scripts in the exact order and provide sudo password when asked (if one of them fails, you can retry just this one before proceeding further)
|
1. run setup scripts in the exact order and provide sudo password when asked (if one of them fails, you can retry just this one before proceeding further)
|
||||||
1. `/home/user/skynet-webportal/setup-scripts/setup-server.sh`
|
1. `/home/user/skynet-webportal/setup-scripts/setup-server.sh`
|
||||||
1. `/home/user/skynet-webportal/setup-scripts/setup-docker-services.sh`
|
1. `/home/user/skynet-webportal/setup-scripts/setup-docker-services.sh`
|
||||||
|
|
Reference in New Issue