{
  "manifest_version": "1.0.0",
  "template": {
    "id": "75d31495-05ee-4267-b832-e923f54534bb",
    "slug": "its-a-plan",
    "name": "It's a Plan",
    "description": "Self-hosted project tracker with boards, cycles and AI agents",
    "url": "https://railway.com/deploy/its-a-plan",
    "upstream": {
      "image": "ghcr.io/croffasia/itsaplan-web:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "bot",
      "source": {
        "image": "ghcr.io/croffasia/itsaplan-bot:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "worker",
      "source": {
        "image": "ghcr.io/croffasia/itsaplan-worker:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "web",
      "source": {
        "image": "ghcr.io/croffasia/itsaplan-web:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "api",
      "source": {
        "image": "ghcr.io/croffasia/itsaplan-api:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Data directory Postgres uses inside the attached volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postgres",
      "description": "Internal hostname of this database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postgres",
      "description": "Port the database listens on.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postgres",
      "description": "ole the application connects as.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postgres",
      "description": "Database the application connects to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postgres",
      "description": "Password for the application role.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Name of the database created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Connection string used by the api and the worker.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Superuser created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postgres",
      "description": "Lifetime in days of the self-signed TLS certificate.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Superuser password, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "postgres",
      "description": "Seconds to finish in-flight work before shutdown.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "NODE_ENV",
      "service": "bot",
      "description": "Runtime mode. Keep it on production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "SERVICE_URL_API",
      "service": "bot",
      "description": "Private address of the API inside the project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WORKER_INTERNAL_TOKEN",
      "service": "bot",
      "description": "Shared secret for the API internal routes.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_ENV",
      "service": "worker",
      "description": "Runtime mode. Keep it on production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "worker",
      "description": "Postgres connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVICE_URL_API",
      "service": "worker",
      "description": "Private address of the API inside the project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WORKER_INTERNAL_TOKEN",
      "service": "worker",
      "description": "Shared secret for the API internal routes.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "web",
      "description": "Port the web server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "API_URL",
      "service": "web",
      "description": "Public origin of the API, e.g. https://api.example.com. Attach this hostname to the api service after deploy.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "APP_URL",
      "service": "web",
      "description": "Public origin of this web app, e.g. https://app.example.com. Attach this hostname to this service after deploy.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "HOSTNAME",
      "service": "web",
      "description": "Interface the web server binds to.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NODE_ENV",
      "service": "web",
      "description": "Runtime mode. Keep it on production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "PORT",
      "service": "api",
      "description": "Port Railway routes traffic to.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "API_URL",
      "service": "api",
      "description": "Public origin of the API. Taken from the web service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_URL",
      "service": "api",
      "description": "Public origin of the web app. Taken from the web service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_PORT",
      "service": "api",
      "description": "Port the API process listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "api",
      "description": "Runtime mode. Keep it on production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "S3_BUCKET",
      "service": "api",
      "description": "Bucket that holds uploaded files.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "api",
      "description": "Region reported to the S3 client.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "api",
      "description": "Object storage endpoint for attachments.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "api",
      "description": "Postgres connection string.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "api",
      "description": "Access key for the bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_ENCRYPTION_KEY",
      "service": "api",
      "description": "Encrypts stored AI provider keys. Changing it makes existing ones unreadable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "api",
      "description": "Signs session cookies. Generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_FORCE_PATH_STYLE",
      "service": "api",
      "description": "Keep false for Railway buckets. Set true for MinIO.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "api",
      "description": "Secret key for the bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORKER_INTERNAL_TOKEN",
      "service": "api",
      "description": "Shared secret the worker and the bot authenticate with.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "its-a-plan"
      }
    },
    "cli": "railway deploy --template its-a-plan",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "75d31495-05ee-4267-b832-e923f54534bb",
            "serializedConfig": {
              "buckets": {
                "e0a91169-0f97-4667-8547-06c395c0a275": {
                  "name": "attachments"
                }
              },
              "services": {
                "3490a56d-6e17-4b0d-9a44-600fb8caddd2": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory Postgres uses inside the attached volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname of this database.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port the database listens on.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "ole the application connects as.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database the application connects to.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the application role.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the database created on first boot.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection string used by the api and the worker.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Lifetime in days of the self-signed TLS certificate.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, generated per deploy.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds to finish in-flight work before shutdown.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "3490a56d-6e17-4b0d-9a44-600fb8caddd2": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "43b4d083-8ad2-4e6a-a66b-b5a84d8bccd4": {
                  "icon": "https://itsaplan.dev/icon.svg",
                  "name": "bot",
                  "source": {
                    "image": "ghcr.io/croffasia/itsaplan-bot:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "NODE_ENV": {
                      "description": "Runtime mode. Keep it on production.",
                      "defaultValue": "production"
                    },
                    "SERVICE_URL_API": {
                      "description": "Private address of the API inside the project.",
                      "defaultValue": "http://${{api.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "WORKER_INTERNAL_TOKEN": {
                      "isOptional": false,
                      "description": "Shared secret for the API internal routes.",
                      "defaultValue": "${{api.WORKER_INTERNAL_TOKEN}}"
                    }
                  }
                },
                "7cc0b52d-0d1c-4d3b-b20a-61c1da8515ee": {
                  "icon": "https://itsaplan.dev/icon.svg",
                  "name": "worker",
                  "source": {
                    "image": "ghcr.io/croffasia/itsaplan-worker:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "NODE_ENV": {
                      "description": "Runtime mode. Keep it on production.",
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "description": "Postgres connection string.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "SERVICE_URL_API": {
                      "description": "Private address of the API inside the project.",
                      "defaultValue": "http://${{api.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "WORKER_INTERNAL_TOKEN": {
                      "isOptional": false,
                      "description": "Shared secret for the API internal routes.",
                      "defaultValue": "${{api.WORKER_INTERNAL_TOKEN}}"
                    }
                  }
                },
                "d0bd0009-1252-44dd-9867-3235784f61aa": {
                  "icon": "https://itsaplan.dev/icon.svg",
                  "name": "web",
                  "deploy": {
                    "healthcheckPath": "/login"
                  },
                  "source": {
                    "image": "ghcr.io/croffasia/itsaplan-web:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port the web server listens on.",
                      "defaultValue": "3001"
                    },
                    "API_URL": {
                      "description": "Public origin of the API, e.g. https://api.example.com. Attach this hostname to the api service after deploy.",
                      "defaultValue": "{{API_URL}}"
                    },
                    "APP_URL": {
                      "description": "Public origin of this web app, e.g. https://app.example.com. Attach this hostname to this service after deploy.",
                      "defaultValue": "{{APP_URL}}"
                    },
                    "HOSTNAME": {
                      "description": "Interface the web server binds to.",
                      "defaultValue": "0.0.0.0"
                    },
                    "NODE_ENV": {
                      "description": "Runtime mode. Keep it on production.",
                      "defaultValue": "production"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  }
                },
                "de111826-0daa-4afc-a85b-f9853f721860": {
                  "icon": "https://itsaplan.dev/icon.svg",
                  "name": "api",
                  "deploy": {
                    "healthcheckPath": "/"
                  },
                  "source": {
                    "image": "ghcr.io/croffasia/itsaplan-api:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port Railway routes traffic to.",
                      "defaultValue": "3000"
                    },
                    "API_URL": {
                      "isOptional": false,
                      "description": "Public origin of the API. Taken from the web service.",
                      "defaultValue": "${{web.API_URL}}"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public origin of the web app. Taken from the web service.",
                      "defaultValue": "${{web.APP_URL}}"
                    },
                    "API_PORT": {
                      "description": "Port the API process listens on.",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "description": "Runtime mode. Keep it on production.",
                      "defaultValue": "production"
                    },
                    "S3_BUCKET": {
                      "description": "Bucket that holds uploaded files.",
                      "defaultValue": "${{attachments.BUCKET}}"
                    },
                    "S3_REGION": {
                      "description": "Region reported to the S3 client.",
                      "defaultValue": "${{attachments.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "description": "Object storage endpoint for attachments.",
                      "defaultValue": "${{attachments.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "description": "Postgres connection string.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "description": "Access key for the bucket.",
                      "defaultValue": "${{attachments.ACCESS_KEY_ID}}"
                    },
                    "APP_ENCRYPTION_KEY": {
                      "description": "Encrypts stored AI provider keys. Changing it makes existing ones unreadable.",
                      "defaultValue": "{{APP_ENCRYPTION_KEY}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "description": "Signs session cookies. Generated per deploy.",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "S3_FORCE_PATH_STYLE": {
                      "description": "Keep false for Railway buckets. Set true for MinIO.",
                      "defaultValue": "false"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "description": "Secret key for the bucket.",
                      "defaultValue": "${{attachments.SECRET_ACCESS_KEY}}"
                    },
                    "WORKER_INTERNAL_TOKEN": {
                      "description": "Shared secret the worker and the bot authenticate with.",
                      "defaultValue": "{{WORKER_INTERNAL_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "web",
      "method": "GET",
      "path": "/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0"
}
