File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 118118.pytest_cache /*
119119.vscode /*
120120spb_python_bot.edn
121+ spb_python_bot.yml
Original file line number Diff line number Diff line change @@ -81,40 +81,14 @@ Match peps in messages and send links for them.
8181/links
8282```
8383
84- Environment variables
85- ---------------------
84+ How to run
85+ ----------
8686
87- ``` basg
87+ ``` bash
8888BOT_TOKEN # telegram bot token
8989BOT_LOGGING_LEVEL # logging level
9090MODERATORS # moderators identifiers splited by space
9191DEBUG # bot autoreload on file save
9292```
9393
94- Run with condo
95- --------------
96- [ Condo] ( https://github.com/prepor/condo ) — reliable and simple idempotent supervisor for Docker containers.
97-
98-
99- ``` edn
100- {
101- :spec {
102- :Name " spb_python_bot"
103- :Image " nonamenix/spb_python_bot:latest"
104- :Env [
105- " BOT_TOKEN=339614247:************************************"
106- " MODERATORS=132982472 59323058"
107- " HEALTHCHECKIO_TOKEN=********-****-****-****-************"
108- " BOT_LOGGING_LEVEL=ERROR"
109- " MONGO_URL=mongodb://spbpythonbot:Lg2vxjoBT3oRmDd4XnyJ2VD6hJC3jb@ds046677.mlab.com:46677/spb_python_bot"
110- " MONGO_HEALTHCHECKIO_TOKEN=fb6c17b8-a64a-41bf-83c7-267ee5124368"
111- ]
112- :HostConfig {
113- :RestartPolicy {:Name " always" }
114- :NetworkMode " petprojects_default"
115- }
116- }
117-
118- :health-timeout 45
119- }
120- ```
94+ Put it to ` .env ` file and run with do ` docker-compose up `
You can’t perform that action at this time.
0 commit comments