Skip to content

Commit bdf5339

Browse files
authored
Update README.md
1 parent 2540da5 commit bdf5339

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

README.md

+68
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,71 @@ 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+
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+

0 commit comments

Comments
 (0)