Skip to content

Commit 6d0dd15

Browse files
author
Danil Ivanov
committed
Delete condo
1 parent 3f1316e commit 6d0dd15

2 files changed

Lines changed: 5 additions & 30 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,4 @@ ENV/
118118
.pytest_cache/*
119119
.vscode/*
120120
spb_python_bot.edn
121+
spb_python_bot.yml

README.md

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff 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
8888
BOT_TOKEN # telegram bot token
8989
BOT_LOGGING_LEVEL # logging level
9090
MODERATORS # moderators identifiers splited by space
9191
DEBUG # 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`

0 commit comments

Comments
 (0)