Skip to content

Commit

Permalink
update env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
okainov committed Jan 25, 2020
1 parent 6464855 commit 5b90227
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Token for the bot received from @BotFather
TG_TOKEN=

# Domain name where the bot is hosted, needed for Telegram callbacks. No leading protocol, it should be accessible via
# HTTPS
# Example: domain.com
HOST_URL=

# Add non-empty value to enable debug
#DEBUG=True
# So far it affects only the mode of running bot, in Debug it's run in "polling" mode while in Production
# it uses "webhook" mode. Thus, HOST_URL is not required for Debug.
DEBUG=
6 changes: 2 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ version: '3'
services:
tg-bot:
build: .
environment:
- TG_TOKEN=${TG_TOKEN}
- DEBUG=${DEBUG}
- HOST_URL=${HOST_URL}
env_file:
- .env
volumes:
- ./jobs.sqlite:/app/jobs.sqlite
ports:
Expand Down

0 comments on commit 5b90227

Please sign in to comment.