-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrailway.toml
More file actions
35 lines (32 loc) · 1.52 KB
/
railway.toml
File metadata and controls
35 lines (32 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# railway.toml — Senpi Waifu Railway deployment config
# Two services share the same Docker image, different start commands.
# Create both via Railway dashboard: New Service → GitHub repo
# Service 1 "senpi-worker": start command = python3 worker.py
# Service 2 "senpi-dashboard": start command = uvicorn dashboard.server:app --host 0.0.0.0 --port $PORT
[build]
builder = "dockerfile"
dockerfilePath = "Dockerfile"
[deploy]
# Default start command (worker). Override per-service in Railway dashboard.
startCommand = "python3 worker.py"
restartPolicyType = "always"
restartPolicyMaxRetries = 10
# Environment variables to set in Railway dashboard (both services):
# SENPI_API_KEY = <your Senpi API key>
# GITHUB_TOKEN = <GitHub fine-grained token, Contents read/write>
# GITHUB_REPO = tradewife/senpi-waifu
# SENPI_WAIFU_DIR = /app
# SENPI_SKILLS_DIR = /opt/senpi/senpi-skills
# TELEGRAM_BOT_TOKEN = <optional>
# TELEGRAM_CHAT_ID = <optional>
#
# Dashboard service only:
# WARP_API_KEY = Warp API key for /flatten command
# OZ_ENVIRONMENT_ID = Oz environment ID from setup-oz-agents.sh
# DASH_TOKEN = secret token for dashboard auth
# PORT = set automatically by Railway
# DASH_PORT = optional local override only when running server.py directly
#
# Telegram bot (runs inside dashboard service):
# TELEGRAM_BOT_TOKEN = Telegram bot token (from @BotFather)
# TELEGRAM_CHAT_ID = Your chat ID (only responds to this chat)