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