Skip to content

Commit 57c8708

Browse files
committed
feat(config): add Fly.io configuration for Python Italy Telegram Bot
- Created a new fly.toml file to define deployment settings for the bot. - Configured application name, primary region, and graceful shutdown parameters. - Specified Docker build settings and environment variables for the application. - Set VM size and restart policy to ensure reliable operation.
1 parent abc00df commit 57c8708

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

fly.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# fly.toml - Python Italy Telegram Bot
2+
# See https://fly.io/docs/reference/configuration/ for information about this file.
3+
4+
app = "python-italy-bot"
5+
primary_region = "fra" # Frankfurt - good for Italy
6+
7+
# Graceful shutdown - python-telegram-bot handles SIGTERM
8+
kill_signal = "SIGTERM"
9+
kill_timeout = 10
10+
11+
[build]
12+
dockerfile = "Dockerfile"
13+
14+
[env]
15+
PYTHONUNBUFFERED = "1"
16+
17+
# No [http_service] or [[services]] - this bot uses polling, not webhooks
18+
19+
[[vm]]
20+
size = "shared-cpu-1x"
21+
memory = "256mb"
22+
23+
[[restart]]
24+
policy = "on-failure"
25+
retries = 5

0 commit comments

Comments
 (0)