{
  "manifest_version": "1.0.0",
  "template": {
    "id": "47928951-432c-41d1-b4f3-8085fccd5322",
    "slug": "koSYWQ",
    "name": "Ghostfolio",
    "description": "An open source wealth management software built with web technology",
    "url": "https://railway.com/deploy/koSYWQ",
    "upstream": {
      "image": "ghostfolio/ghostfolio"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:15"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "railwayapp/redis"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "Primary",
      "source": {
        "image": "ghostfolio/ghostfolio"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Public host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Public port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "Postgres",
      "description": "Private host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "Postgres",
      "description": "Private port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "Private database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Railway Public Domain Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port to connect to Redis",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default user to connect to Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "URL to connect to Redis",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDISHOST_PRIVATE",
      "service": "Redis",
      "description": "Private domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT_PRIVATE",
      "service": "Redis",
      "description": "Private port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDIS_PRIVATE_URL",
      "service": "Redis",
      "description": "Private URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Primary",
      "description": "The port where the Ghostfolio application will run on",
      "secret": false,
      "strategy": "default",
      "default": "3333"
    },
    {
      "key": "REDIS_HOST",
      "service": "Primary",
      "description": "The host where Redis is running",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "Primary",
      "description": "${{Redis.REDISPORT}}",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Primary",
      "description": "The name of the PostgreSQL database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "Primary",
      "description": "The database connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Primary",
      "description": "The user of the PostgreSQL database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JWT_SECRET_KEY",
      "service": "Primary",
      "description": "A random string used for JSON Web Tokens (JWT)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Primary",
      "description": "The password of Redis",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACCESS_TOKEN_SALT",
      "service": "Primary",
      "description": "A random string used as salt for access tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Primary",
      "description": "The password of the PostgreSQL database",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "koSYWQ"
      }
    },
    "cli": "railway deploy --template koSYWQ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "47928951-432c-41d1-b4f3-8085fccd5322",
            "serializedConfig": {
              "services": {
                "2fe750ec-4dc4-4b42-b290-7c0a9b52ea1a": {
                  "icon": "https://img.icons8.com/color/48/postgreesql.png",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"unset PGPORT; docker-entrypoint.sh postgres --port=5432\""
                  },
                  "source": {
                    "image": "postgres:15"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Public host",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Public port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database",
                      "defaultValue": "postgres://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST}}:${{PGPORT}}/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "railway"
                    },
                    "PGHOST_PRIVATE": {
                      "isOptional": false,
                      "description": "Private host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT_PRIVATE": {
                      "isOptional": false,
                      "description": "Private port",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private database URL",
                      "defaultValue": "postgres://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST_PRIVATE}}:${{PGPORT_PRIVATE}}/${{POSTGRES_DB}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "2fe750ec-4dc4-4b42-b290-7c0a9b52ea1a": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "52157ac1-ef97-4fce-8e5a-826f30fde2f9": {
                  "icon": "https://img.icons8.com/color/48/redis--v1.png",
                  "name": "Redis",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "railwayapp/redis"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Railway Public Domain Name",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Redis",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default user to connect to Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Redis",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "0"
                    },
                    "REDISHOST_PRIVATE": {
                      "isOptional": false,
                      "description": "Private domain",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT_PRIVATE": {
                      "isOptional": false,
                      "description": "Private port",
                      "defaultValue": "6379"
                    },
                    "REDIS_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST_PRIVATE}}:${{REDISPORT_PRIVATE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "52157ac1-ef97-4fce-8e5a-826f30fde2f9": {
                      "mountPath": "/bitnami"
                    }
                  }
                },
                "7864434d-25d2-41bc-a999-2b8fe251f257": {
                  "icon": "https://avatars.githubusercontent.com/u/82473144?s=200",
                  "name": "Primary",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"sleep 3 && yarn start:production\"",
                    "healthcheckPath": "/api/admin/site"
                  },
                  "source": {
                    "image": "ghostfolio/ghostfolio"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port where the Ghostfolio application will run on",
                      "defaultValue": "3333"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "The host where Redis is running",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "${{Redis.REDISPORT}}",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "The name of the PostgreSQL database",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "The database connection URL",
                      "defaultValue": "${{Postgres.DATABASE_PRIVATE_URL}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "The user of the PostgreSQL database",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "JWT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "A random string used for JSON Web Tokens (JWT)",
                      "defaultValue": "{{JWT_SECRET_KEY}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "The password of Redis",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "ACCESS_TOKEN_SALT": {
                      "isOptional": false,
                      "description": "A random string used as salt for access tokens",
                      "defaultValue": "{{ACCESS_TOKEN_SALT}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "The password of the PostgreSQL database",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Primary",
      "method": "GET",
      "path": "/api/admin/site",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T15:51:13.202Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_03c1adff5b9c4c5e8d72",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,SUCCESS,FAILED"
      }
    ]
  }
}
