{
  "manifest_version": "1.0.0",
  "template": {
    "id": "33196398-a30f-437c-b339-3d93618bd821",
    "slug": "fittrackee",
    "name": "FitTrackee",
    "description": "Self-hosted workout tracker: GPS tracks, maps and statistics",
    "url": "https://railway.com/deploy/fittrackee",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/fittrackee-railway:1.0.0"
    }
  },
  "services": [
    {
      "name": "db",
      "source": {
        "image": "postgis/postgis:18-3.6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "app",
      "source": {
        "image": "ghcr.io/youssefsiam38/fittrackee-railway:1.0.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/src/app/uploads",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_DB",
      "service": "db",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "fittrackee"
    },
    {
      "key": "POSTGRES_USER",
      "service": "db",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "fittrackee"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "db",
      "description": "Database password, referenced by the app service.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "app",
      "description": "Timezone used for dates.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "app",
      "description": "Port the gate listens on. Railway probes its healthcheck here, so keep it equal to the domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UI_URL",
      "service": "app",
      "description": "Public URL, used in the links the application sends out.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "app",
      "description": "Connection to the PostGIS database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SECRET_KEY",
      "service": "app",
      "description": "Signs session tokens. The wrapper refuses upstream's placeholder value.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "FITTRACKEE_MAX_USERS",
      "service": "app",
      "description": "How many accounts may exist. 0 means unlimited, which leaves registration open to anyone.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "FITTRACKEE_OWNER_EMAIL",
      "service": "app",
      "description": "That account's e-mail. Change it to your own.",
      "secret": false,
      "strategy": "default",
      "default": "owner@example.com"
    },
    {
      "key": "FITTRACKEE_OWNER_PASSWORD",
      "service": "app",
      "description": "That account's password. Sign in with it, then change it in the app.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "FITTRACKEE_OWNER_USERNAME",
      "service": "app",
      "description": "Username of the account created on first start.",
      "secret": false,
      "strategy": "default",
      "default": "owner"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "fittrackee"
      }
    },
    "cli": "railway deploy --template fittrackee",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "33196398-a30f-437c-b339-3d93618bd821",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "48d7a5a6-464d-4825-9868-21dcdd77ac11": {
                  "icon": null,
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgis/postgis:18-3.6-alpine"
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "fittrackee"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "fittrackee"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password, referenced by the app service.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "48d7a5a6-464d-4825-9868-21dcdd77ac11": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "5a28783f-fc4a-42aa-93f0-df36dacc9456": {
                  "icon": null,
                  "name": "app",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/fittrackee-railway:1.0.0"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone used for dates.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the gate listens on. Railway probes its healthcheck here, so keep it equal to the domain's target port.",
                      "defaultValue": "8080"
                    },
                    "UI_URL": {
                      "isOptional": false,
                      "description": "Public URL, used in the links the application sends out.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection to the PostGIS database.",
                      "defaultValue": "postgresql://${{db.POSTGRES_USER}}:${{db.POSTGRES_PASSWORD}}@${{db.RAILWAY_PRIVATE_DOMAIN}}:5432/${{db.POSTGRES_DB}}"
                    },
                    "APP_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs session tokens. The wrapper refuses upstream's placeholder value.",
                      "defaultValue": "{{APP_SECRET_KEY}}"
                    },
                    "FITTRACKEE_MAX_USERS": {
                      "isOptional": false,
                      "description": "How many accounts may exist. 0 means unlimited, which leaves registration open to anyone.",
                      "defaultValue": "1"
                    },
                    "FITTRACKEE_OWNER_EMAIL": {
                      "isOptional": false,
                      "description": "That account's e-mail. Change it to your own.",
                      "defaultValue": "owner@example.com"
                    },
                    "FITTRACKEE_OWNER_PASSWORD": {
                      "isOptional": false,
                      "description": "That account's password. Sign in with it, then change it in the app.",
                      "defaultValue": "{{FITTRACKEE_OWNER_PASSWORD}}"
                    },
                    "FITTRACKEE_OWNER_USERNAME": {
                      "isOptional": false,
                      "description": "Username of the account created on first start.",
                      "defaultValue": "owner"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "5a28783f-fc4a-42aa-93f0-df36dacc9456": {
                      "mountPath": "/usr/src/app/uploads"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "app",
      "method": "GET",
      "path": "/api/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T10:14:41.946Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-12T09:24:38.389Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fa9cfb62357c43d6ad3a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 47,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "app"
  }
}
