Railway

Railway Deploy

Railway is one of the cleanest hosted options for the current bot.

Steps

  1. Fork the repository on GitHub.
  2. Create a new Railway project and choose Deploy from GitHub.
  3. Select your forked repository.
  4. Let Railway detect the Docker build from the repository root.
  5. Add the required environment variables in the Railway variables panel.
  6. Redeploy after saving the variables.

Environment Variables

BOT_TOKEN=
OWNER_ID=
AUTH_USERS=
DOWNLOAD_LOCATION=./DOWNLOADS
CHUNK_SIZE=128
HTTP_PROXY=
PROCESS_MAX_TIMEOUT=3700

Notes

  • Railway should build from the root Dockerfile
  • the service should run the default container command
  • if the first deploy starts before variables are set, just redeploy once the values are in place