Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
broot5 committed Mar 21, 2024
1 parent 9e102f5 commit f1df454
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 24 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,31 @@ python bot.py
```

## Run with docker
### Build image
```console
git clone https://github.com/broot5/hbot.git
cd hbot
docker compose up -d
```

### docker run
```console
docker run --name hbot \
-e BOT_NAME="hbot" \
-e SITE="gallery-dl_supported_site" \
-e DL_URL="url" \
-e TOKEN="sdsafasd123124" \
-v ./:/app/ \
-v ./save:/app/save \
hbot
```

### docker compose
1. rename example.env to .env and modify it.
2. docker compose up -d
```yaml
version: "3.8"

services:
hbot:
build: ./
container_name: hbot
restart: unless-stopped
volumes:
- ./save:/app/save
environment:
- BOT_NAME=hbot
- SITE=gallery-dl_supported_site
- DL_URL=url/{}
- TOKEN=asdsafasd123124
```
10 changes: 0 additions & 10 deletions docker-compose.yml

This file was deleted.

4 changes: 0 additions & 4 deletions example.env

This file was deleted.

0 comments on commit f1df454

Please sign in to comment.