1
0
Fork 0

Fix volume and add close on reset migration

This commit is contained in:
Ethanell 2020-02-05 11:54:04 +01:00
parent bfe744343d
commit 5906464f3a
2 changed files with 2 additions and 1 deletions

1
app.py
View file

@ -13,6 +13,7 @@ if (not isdir("/TelegramEDT/alembic")) and isfile("/TelegramEDT/edt.db"):
c = connect("/TelegramEDT/edt.db")
c.execute("delete from alembic_version;")
c.commit()
c.close()
app = Flask(__name__)
webhook_secret = environ.get("webhook_secret")

View file

@ -5,7 +5,7 @@ services:
networks:
- nginx_web
volumes:
- ./TelegramEDT/TelegramEDT:/TelegramEDT
- ./TelegramEDT:/TelegramEDT
env_file:
- webhook_secret.env