forked from ioticos/demo_services_ioticos_gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.txt
82 lines (52 loc) · 1.55 KB
/
installer.txt
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
ANOTACIONES PARA LUEGO GENERAR BASH SCRIPT
sudo apt-get update
wget https://get.docker.com/
sudo mv index.html install_docker.sh
sudo chmod 777 install_docker.sh
sudo ./install_docker.sh
sudo rm install_docker.sh
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo git clone https://github.com/ioticos/ioticos_god_level_services.git
sudo mv ioticos_god_level_services ioticos
cd ioticos
// WARNING .ENV
sudo git clone https://github.com/ioticos/ioticos_god_level_app.git
sudo mv ioticos_god_level_app app
// WARNING .ENV
sudo docker-compose -f docker_node_install.yml up -d
sudo docker-compose -f docker-compose-production.yml up -d
>>>>SERVICES .ENV
environment=dev
# TIMEZONE (all containers).
TZ=UTC
# MONGO CREDENTIALS
MONGO_USERNAME=devuser
MONGO_PASSWORD=devpassword
MONGO_EXT_PORT=27017
# EMQX
EMQX_DEFAULT_USER_PASSWORD=emqxdashpass
EMQX_DEFAULT_APPLICATION_SECRET=emqxsecret
------------
>>>>>>> APP .env
#A P I
API_PORT=3001
MONGO_USERNAME=devuser
MONGO_PASSWORD=devpassword
MONGO_HOST=mongo
MONGO_PORT=27017
MONGO_DATABASE=ioticos_god_level
#emqx
EMQX_DEFAULT_APPLICATION_SECRET=emqxsecret
EMQX_NODE_SUPERUSER_USER=superuser
EMQX_NODE_SUPERUSER_PASSWORD=superuser
EMQX_NODE_HOST=54.94.41.193
EMQX_API_TOKEN=121212
# F R O N T
APP_PORT=3000
AXIOS_BASE_URL=http://54.94.41.193:3001/api
MQTT_PREFIX=ws://
MQTT_HOST=54.94.41.193
MQTT_PORT=8083
EMQX_RESOURCES_DELAY=30000
//sudo usermod -aG docker ubuntu