Skip to content

Commit

Permalink
Add Running through docker documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Masudur Rahman <masudjuly02@gmail.com>
  • Loading branch information
masudur-rahman committed Feb 26, 2024
1 parent 1cfef45 commit 68118f0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,26 @@ If you want to back up your SQLite database to Google Drive regularly, follow th
```bash
make run
```
### Docker Setup
- Write configuration file
```shell
mkdir -p $HOME/.expense-tracker/configs
echo '
telegram:
user: masudur_rahman
database:
type: sqlite
' > $HOME/.expense-tracker/configs/.expense-tracker.yaml
```

- Run Expense Tracker Bot
```shell
docker run -v $HOME/.expense-tracker/configs:/configs \
-v $HOME/.expense-tracker:/.expense-tracker \
-e TELEGRAM_BOT_TOKEN=<TELEGRAM_BOT_TOKEN> \
ghcr.io/masudur-rahman/expense-tracker-bot:v0.2.4 serve
```

### Back4App Setup

Expand Down

0 comments on commit 68118f0

Please sign in to comment.