forked from DRYTRIX/TimeTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrailway.toml
More file actions
29 lines (25 loc) Β· 995 Bytes
/
Copy pathrailway.toml
File metadata and controls
29 lines (25 loc) Β· 995 Bytes
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
# Railway deployment config for TimeTracker
# https://docs.railway.app/reference/config-as-code
#
# Setup:
# 1. Create a Railway project at https://railway.app
# 2. Add a PostgreSQL plugin
# 3. Add a service from Docker image: ghcr.io/drytrix/timetracker:latest
# 4. Set environment variables below (DATABASE_URL from Postgres plugin)
# 5. Deploy
[build]
builder = "DOCKERFILE"
dockerfilePath = "Dockerfile"
# When deploying from Docker image directly (recommended), skip build and set
# the image in Railway dashboard: ghcr.io/drytrix/timetracker:latest
[deploy]
healthcheckPath = "/_health"
healthcheckTimeout = 300
restartPolicyType = "on_failure"
restartPolicyMaxRetries = 3
# Required environment variables (set in Railway dashboard):
# SECRET_KEY β generate with: openssl rand -hex 32
# DATABASE_URL β from PostgreSQL plugin (postgresql://...)
# FLASK_ENV β production
# REDIS_ENABLED β false
# AUTH_METHOD β local