-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_server
48 lines (38 loc) · 1.04 KB
/
setup_server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo apt install git htop docker.io -y
sudo apt-get update -y
#DOCKER
sudo usermod -aG docker ${uname -n}
# Install docker-compose 1.29.2
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
#### MONGO ####
apt update
apt install nano systemctl
nano /etc/mongo
{
bind:
0.0.0.0:27017
security:
authorization: enabled
}
db.createUser( { user: "admin", pwd: "admin123", roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ]} )
db.system.users.find()
{
"_id" : ObjectId("622471905ac076b2a79b6da3"),
"packageName" : "com.filimo.nissanabi",
"env" : "prod",
"active" : true,
"lastVersion" : 0,
"supportedVersion" : 0,
"cohorts" : {},
"markets" : {},
"challenges" : {},
"referralCodes" : {},
"severAddresses" : {}
}
################
#SHEKAN DNS
sudo nano /etc/resolve.conf
#nameserver {other}
nameserver 178.22.122.100
nameserver 185.51.200.2