File tree 1 file changed +68
-0
lines changed
1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,71 @@ Read the <a href="https://space4renjith.blogspot.com/2022/05/clonebot-technical-
27
27
<br><br>
28
28
<a href="https://t.me/rmprojects" target="_blank">@M4Mallu</a>
29
29
</p >
30
+
31
+
32
+ 1 . ** Deploying on VPS Using Docker**
33
+
34
+ - Start Docker daemon (skip if already running), if installed by snap then use 2nd command:
35
+
36
+ sudo dockerd
37
+ sudo snap start docker
38
+
39
+ Note: If not started or not starting, run the command below then try to start.
40
+
41
+ sudo apt install docker.io
42
+
43
+ - Build Docker image:
44
+
45
+ sudo docker build . -t clone-bot
46
+
47
+ - Run the image:
48
+
49
+ sudo docker run clone-bot
50
+
51
+ - To stop the image:
52
+
53
+ sudo docker ps
54
+ sudo docker stop id
55
+
56
+ - To clear the container:
57
+
58
+ sudo docker container prune
59
+
60
+ - To delete the images:
61
+
62
+ sudo docker image prune -a
63
+
64
+ 2 . ** Deploying on VPS Using docker-compose**
65
+
66
+ ** NOTE** : If you want to use port other than 80, change it in docker-compose.yml
67
+
68
+ ```
69
+ sudo apt install docker-compose
70
+ ```
71
+ - Build and run Docker image:
72
+ ```
73
+ sudo docker-compose up
74
+ ```
75
+ - After editing files with nano for example (nano start.sh):
76
+ ```
77
+ sudo docker-compose up --build
78
+ ```
79
+ - To stop the image:
80
+ ```
81
+ sudo docker-compose stop
82
+ ```
83
+ - To run the image:
84
+ ```
85
+ sudo docker-compose start
86
+
87
+ ```
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
You can’t perform that action at this time.
0 commit comments