{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dbc29fce-5260-4782-a3ed-e358c693103c",
    "slug": "traccar",
    "name": "Traccar",
    "description": "Traccar GPS tracking behind a password, with phone-app position tracking",
    "url": "https://railway.com/deploy/traccar",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/traccar-railway-caddy:1.0.0"
    }
  },
  "services": [
    {
      "name": "traccar",
      "source": {
        "image": "traccar/traccar:6.15"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/traccar/data",
      "http": false
    },
    {
      "name": "caddy",
      "source": {
        "image": "ghcr.io/youssefsiam38/traccar-railway-caddy:1.0.0"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "WEB_REGISTRATION",
      "service": "traccar",
      "description": "Public self-registration off; the first user (created behind the front door) still becomes admin.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CONFIG_USE_ENVIRONMENT_VARIABLES",
      "service": "traccar",
      "description": "Let Traccar read configuration from environment variables.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "caddy",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TRACCAR_WEB",
      "service": "caddy",
      "description": "Internal host:port of Traccar's web/API; the front door proxies to it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OWNER_PASSWORD",
      "service": "caddy",
      "description": "The front-door password (HTTP basic auth), generated. Copy it from here; username is 'owner'.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OWNER_USERNAME",
      "service": "caddy",
      "description": "The front-door username you sign in with.",
      "secret": false,
      "strategy": "default",
      "default": "owner"
    },
    {
      "key": "TRACCAR_OSMAND",
      "service": "caddy",
      "description": "Internal host:port of Traccar's OsmAnd protocol; /osmand routes here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "caddy",
      "description": "Give Traccar time to initialise its database on the first start.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "traccar"
      }
    },
    "cli": "railway deploy --template traccar",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dbc29fce-5260-4782-a3ed-e358c693103c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "455d9309-2db0-4f7d-89ce-934330edaae9": {
                  "icon": null,
                  "name": "traccar",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "traccar/traccar:6.15"
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "JDBC URL for an external MySQL/PostgreSQL database."
                    },
                    "DATABASE_USER": {
                      "isOptional": true,
                      "description": "External database user."
                    },
                    "MAIL_SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP host for notification emails (with the other MAIL_SMTP_* keys)."
                    },
                    "DATABASE_DRIVER": {
                      "isOptional": true,
                      "description": "JDBC driver class for an external database instead of the embedded H2 (e.g. org.postgresql.Driver)."
                    },
                    "WEB_REGISTRATION": {
                      "isOptional": false,
                      "description": "Public self-registration off; the first user (created behind the front door) still becomes admin.",
                      "defaultValue": "false"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": true,
                      "description": "External database password."
                    },
                    "CONFIG_USE_ENVIRONMENT_VARIABLES": {
                      "isOptional": false,
                      "description": "Let Traccar read configuration from environment variables.",
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "455d9309-2db0-4f7d-89ce-934330edaae9": {
                      "mountPath": "/opt/traccar/data"
                    }
                  }
                },
                "48966fd8-5d7a-4b02-96c5-b177dcf73d9e": {
                  "icon": null,
                  "name": "caddy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/traccar-railway-caddy:1.0.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "TRACCAR_WEB": {
                      "isOptional": false,
                      "description": "Internal host:port of Traccar's web/API; the front door proxies to it.",
                      "defaultValue": "${{traccar.RAILWAY_PRIVATE_DOMAIN}}:8082"
                    },
                    "OWNER_PASSWORD": {
                      "isOptional": false,
                      "description": "The front-door password (HTTP basic auth), generated. Copy it from here; username is 'owner'.",
                      "defaultValue": "{{OWNER_PASSWORD}}"
                    },
                    "OWNER_USERNAME": {
                      "isOptional": false,
                      "description": "The front-door username you sign in with.",
                      "defaultValue": "owner"
                    },
                    "TRACCAR_OSMAND": {
                      "isOptional": false,
                      "description": "Internal host:port of Traccar's OsmAnd protocol; /osmand routes here.",
                      "defaultValue": "${{traccar.RAILWAY_PRIVATE_DOMAIN}}:5055"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Give Traccar time to initialise its database on the first start.",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "caddy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T10:14:36.166Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T08:06:47.527Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d3811c63dbe049b78ca1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "traccar"
  }
}
