Skip to content

Commit 8ceebe6

Browse files
authored
Merge pull request m4mallu#101 from rinrinx2/patch-5
Update README.md
2 parents ee5003e + 21d66d8 commit 8ceebe6

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

README.md

+70
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,73 @@ Read the <a href="https://space4renjith.blogspot.com/2022/05/clonebot-technical-
2727
<br><br>
2828
<a href="https://t.me/rmprojects" target="_blank">@M4Mallu</a>
2929
</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+

0 commit comments

Comments
 (0)