Skip to content

Commit

Permalink
revert DB_URI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy1709 committed Aug 27, 2024
1 parent a9f77e5 commit d94bd8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
version: '3.3'

services:
app:
app:
container_name: cat
build:
context: .
dockerfile: Dockerfile
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:
Expand All @@ -34,3 +34,6 @@ services:
volumes:
db:
driver: local
botdata:
driver: local

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ cinemagoer
cloudscraper
colour
cowpy
c-telethon
emoji==1.7.0
fonttools
geopy
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sample_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d94bd8a

Please sign in to comment.