From d94bd8accdffd3ce1d8a6c06f898221ad749a778 Mon Sep 17 00:00:00 2001 From: "sandeep.n" Date: Tue, 27 Aug 2024 18:51:50 +0530 Subject: [PATCH] revert DB_URI changes --- docker-compose.yml | 9 ++++++--- requirements.txt | 2 +- sample_config.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c42829ac79..bc23502efe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ version: '3.3' services: - app: + app: container_name: cat build: context: . @@ -18,11 +18,11 @@ services: command: python3 -m userbot restart: on-failure environment: - - DB_URI=postgresql://postgres:postgres@db/catuserbot + - DATABASE_URL=postgresql://postgres:postgres@db/catuserbot depends_on: - db - db: + db: image: postgres restart: always environment: @@ -34,3 +34,6 @@ services: volumes: db: driver: local + botdata: + driver: local + diff --git a/requirements.txt b/requirements.txt index 649d180c48..5cedddca8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,6 @@ cinemagoer cloudscraper colour cowpy -c-telethon emoji==1.7.0 fonttools geopy @@ -59,6 +58,7 @@ wand wget git+https://github.com/Jisan09/search-engine-parser +git+https://github.com/Jisan09/Telethon@test git+https://github.com/goldsmith/Wikipedia git+https://github.com/sandy1709/py-googletrans git+https://github.com/alexmercerind/youtube-search-python diff --git a/sample_config.py b/sample_config.py index 9562e14677..d0c7b0e53a 100644 --- a/sample_config.py +++ b/sample_config.py @@ -18,7 +18,7 @@ class Config(object): APP_ID = int(os.environ.get("APP_ID", 6)) API_HASH = os.environ.get("API_HASH") or None # Datbase url heroku sets it automatically else get this from elephantsql - DB_URI = os.environ.get("DB_URI", None) + DB_URI = os.environ.get("DATABASE_URL", None) # Get this value by running python3 stringsetup.py or https://repl.it/@sandeep1709/generatestringsession STRING_SESSION = os.environ.get("STRING_SESSION", None) # Telegram BOT Token and bot username from @BotFather