{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bcb2d790-582f-444b-a137-cdb3bb1cf694",
    "slug": "offen-fair-analytics",
    "name": "Offen Fair Web Analytics",
    "description": "Privacy-friendly web analytics with PostgreSQL and generated operator login",
    "url": "https://railway.com/deploy/offen-fair-analytics",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-offen"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "offen",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-offen"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory inside the attached volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database created for Offen.",
      "secret": false,
      "strategy": "default",
      "default": "offen"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Database user created for Offen.",
      "secret": false,
      "strategy": "default",
      "default": "offen"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Database password. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_URL",
      "service": "offen",
      "description": "Private PostgreSQL connection used by Offen.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OFFEN_SECRET",
      "service": "offen",
      "description": "Base64 application secret. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OFFEN_ADMIN_EMAIL",
      "service": "offen",
      "description": "Email address for the initial Offen operator.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "OFFEN_ACCOUNT_NAME",
      "service": "offen",
      "description": "Display name for the initial analytics account.",
      "secret": false,
      "strategy": "default",
      "default": "My Website"
    },
    {
      "key": "OFFEN_ADMIN_PASSWORD",
      "service": "offen",
      "description": "Password for the initial Offen operator. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "offen-fair-analytics"
      }
    },
    "cli": "railway deploy --template offen-fair-analytics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bcb2d790-582f-444b-a137-cdb3bb1cf694",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "ccd68bef-cd5d-418f-8178-8c43cd4700a4": {
                  "icon": "https://upload.wikimedia.org/wikipedia/commons/2/29/Postgresql_elephant.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.6-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory inside the attached volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created for Offen.",
                      "defaultValue": "offen"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user created for Offen.",
                      "defaultValue": "offen"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password. Generated for every deployment.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "ccd68bef-cd5d-418f-8178-8c43cd4700a4": {
                      "mountPath": "/var/lib/postgresql/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "dd9933fd-dff8-4e8b-afe3-b6c8ae0fe13a": {
                  "icon": "https://avatars.githubusercontent.com/u/47735043",
                  "name": "offen",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 180,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-offen",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection used by Offen.",
                      "defaultValue": "postgresql://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}?sslmode=disable"
                    },
                    "OFFEN_SECRET": {
                      "isOptional": false,
                      "description": "Base64 application secret. Generated for every deployment.",
                      "defaultValue": "{{OFFEN_SECRET}}"
                    },
                    "OFFEN_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email address for the initial Offen operator.",
                      "defaultValue": "{{OFFEN_ADMIN_EMAIL}}"
                    },
                    "OFFEN_ACCOUNT_NAME": {
                      "isOptional": false,
                      "description": "Display name for the initial analytics account.",
                      "defaultValue": "My Website"
                    },
                    "OFFEN_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the initial Offen operator. Generated for every deployment.",
                      "defaultValue": "{{OFFEN_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "offen",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-18T22:14:40.474Z",
  "generator_version": "0.1.0"
}
