{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dcb18562-cf54-4cb4-8b25-ad34868c4afc",
    "slug": "wger",
    "name": "wger",
    "description": "Workout and nutrition manager with generated admin and Postgres",
    "url": "https://railway.com/deploy/wger",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-wger"
    }
  },
  "services": [
    {
      "name": "wger",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-wger"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/wger/media",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "wger",
      "description": "Public Caddy port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SITE_URL",
      "service": "wger",
      "description": "Canonical wger URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WGER_PORT",
      "service": "wger",
      "description": "Internal Gunicorn port.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "SECRET_KEY",
      "service": "wger",
      "description": "Persistent Django session and signing secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "USE_CELERY",
      "service": "wger",
      "description": "Disable optional background workers in this core topology.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "DJANGO_DEBUG",
      "service": "wger",
      "description": "Disable debug output.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "PS_DATABASE_URI",
      "service": "wger",
      "description": "Private Postgres connection URI.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WGER_ADMIN_EMAIL",
      "service": "wger",
      "description": "Initial admin email.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "ALLOW_GUEST_USERS",
      "service": "wger",
      "description": "Disable automatic guest accounts.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "ALLOW_REGISTRATION",
      "service": "wger",
      "description": "Keep public registration closed by default.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "WGER_ADMIN_PASSWORD",
      "service": "wger",
      "description": "Generated admin password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CSRF_TRUSTED_ORIGINS",
      "service": "wger",
      "description": "Trusted public HTTPS origin.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DJANGO_PERFORM_MIGRATIONS",
      "service": "wger",
      "description": "Apply database migrations at startup.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "X_FORWARDED_PROTO_HEADER_SET",
      "service": "wger",
      "description": "Trust Railway HTTPS forwarding through Caddy.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Database cluster subdirectory.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database name.",
      "secret": false,
      "strategy": "default",
      "default": "wger"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Database user.",
      "secret": false,
      "strategy": "default",
      "default": "wger"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wger"
      }
    },
    "cli": "railway deploy --template wger",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dcb18562-cf54-4cb4-8b25-ad34868c4afc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "41600dfa-f1b5-4bc7-b1fe-e01aca9c70f7": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-wger/1875bb8cd107324f49eb4dba9dfd90b2bc977a41/assets/wger-icon.png",
                  "name": "wger",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-wger",
                    "commitSha": "0ae46de559f7f9fa22977168a180edf9db7decd6",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public Caddy port.",
                      "defaultValue": "8080"
                    },
                    "SITE_URL": {
                      "isOptional": false,
                      "description": "Canonical wger URL.",
                      "defaultValue": "https://${{wger.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WGER_PORT": {
                      "isOptional": false,
                      "description": "Internal Gunicorn port.",
                      "defaultValue": "8000"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Persistent Django session and signing secret.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "USE_CELERY": {
                      "isOptional": false,
                      "description": "Disable optional background workers in this core topology.",
                      "defaultValue": "False"
                    },
                    "DJANGO_DEBUG": {
                      "isOptional": false,
                      "description": "Disable debug output.",
                      "defaultValue": "False"
                    },
                    "PS_DATABASE_URI": {
                      "isOptional": false,
                      "description": "Private Postgres connection URI.",
                      "defaultValue": "postgres://wger:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/wger"
                    },
                    "WGER_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Initial admin email.",
                      "defaultValue": "admin@example.com"
                    },
                    "ALLOW_GUEST_USERS": {
                      "isOptional": false,
                      "description": "Disable automatic guest accounts.",
                      "defaultValue": "False"
                    },
                    "ALLOW_REGISTRATION": {
                      "isOptional": false,
                      "description": "Keep public registration closed by default.",
                      "defaultValue": "False"
                    },
                    "WGER_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated admin password.",
                      "defaultValue": "{{WGER_ADMIN_PASSWORD}}"
                    },
                    "CSRF_TRUSTED_ORIGINS": {
                      "isOptional": false,
                      "description": "Trusted public HTTPS origin.",
                      "defaultValue": "https://${{wger.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DJANGO_PERFORM_MIGRATIONS": {
                      "isOptional": false,
                      "description": "Apply database migrations at startup.",
                      "defaultValue": "True"
                    },
                    "X_FORWARDED_PROTO_HEADER_SET": {
                      "isOptional": false,
                      "description": "Trust Railway HTTPS forwarding through Caddy.",
                      "defaultValue": "True"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "41600dfa-f1b5-4bc7-b1fe-e01aca9c70f7": {
                      "mountPath": "/home/wger/media",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "aec44660-6f85-44d2-8d3f-ab18a3bd1f2a": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.6-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Database cluster subdirectory.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "wger"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user.",
                      "defaultValue": "wger"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "aec44660-6f85-44d2-8d3f-ab18a3bd1f2a": {
                      "mountPath": "/var/lib/postgresql/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "wger",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T06:01:09.250Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_06a9e8e46d3348ce9a0f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 128,
    "typical_build_seconds": 51,
    "typical_start_seconds": 60,
    "slowest_service": "wger"
  }
}
