Skip to content

Commit

Permalink
Merge pull request #101 from rinrinx2/patch-5
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
m4mallu authored Oct 17, 2022
2 parents ee5003e + 21d66d8 commit 8ceebe6
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,73 @@ Read the <a href="https://space4renjith.blogspot.com/2022/05/clonebot-technical-
<br><br>
<a href="https://t.me/rmprojects" target="_blank">@M4Mallu</a>
</p>

<details>
<summary><b>Deploy Using Docker</b></summary>
1. Deploying on VPS Using Docker

- Start Docker daemon (skip if already running), if installed by snap then use 2nd command:

sudo dockerd
sudo snap start docker

Note: If not started or not starting, run the command below then try to start.

sudo apt install docker.io

- Build Docker image:

sudo docker build . -t clone-bot

- Run the image:

sudo docker run clone-bot

- To stop the image:

sudo docker ps
sudo docker stop id

- To clear the container:

sudo docker container prune

- To delete the images:

sudo docker image prune -a

2. Deploying on VPS Using docker-compose

**NOTE**: If you want to use port other than 80, change it in docker-compose.yml

```
sudo apt install docker-compose
```
- Build and run Docker image:
```
sudo docker-compose up
```
- After editing files with nano for example (nano start.sh):
```
sudo docker-compose up --build
```
- To stop the image:
```
sudo docker-compose stop
```
- To run the image:
```
sudo docker-compose start
```

</details>










0 comments on commit 8ceebe6

Please sign in to comment.