Skip to content

Commit

Permalink
modified: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
obervinov committed Nov 15, 2022
1 parent 9fcde38 commit 6e75916
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The vault is used for:
| `BOT_NAME` | The name of the bot | `telegram-assistent` |
| `BOT_VAULT_MOUNT_PATH` | The point of mounting secrets in the vault | `secretv2` |

## How to run with docker-compose
## <img src="https://github.com/obervinov/content/blob/main/ico/2366710.png" width="25" title="docker"> How to run with docker-compose
1. Building and launching docker container with vault-server
```sh
docker-compose up -d vault-server
Expand Down Expand Up @@ -137,7 +137,7 @@ docker-compose up -d ${BOT_NAME}
docker logs -f ${BOT_NAME}
```

## How to run a bot locally without a docker
## <img src="https://github.com/obervinov/content/blob/main/ico/8840892.png" width="25" title="locally"> How to run a bot locally without a docker
**You need an already running and configured vault to use the approle and kv v2 engine**
1. Installing python requirements
```sh
Expand All @@ -160,7 +160,7 @@ expot BOT_VAULT_APPROLE_SECRET_ID="change_me"
python3 bot.py
```

## How to build a docker image with a bot
## <img src="https://github.com/obervinov/content/blob/main/ico/7264022.png" width="25" title="build"> How to build a docker image with a bot
```sh
export BOT_VERSION=v1.0.0
export BOT_NAME="telegram-assistent"
Expand Down

0 comments on commit 6e75916

Please sign in to comment.