{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a23c8dc8-be4a-4ed0-a382-5e3b636c0409",
    "slug": "pelican",
    "name": "pelican",
    "description": "Deploy and Host Pelican Panel with Railway",
    "url": "https://railway.com/deploy/pelican",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/pelican"
    }
  },
  "services": [
    {
      "name": "pelican-db",
      "source": {
        "image": "postgres:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "pelican",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/pelican"
      },
      "needs_volume": true,
      "volume_mount_path": "/pelican-data",
      "http": true
    },
    {
      "name": "pelican-redis",
      "source": {
        "image": "redis:7"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "pelican-db",
      "description": "Data directory inside the volume. Points below the mount root to avoid the lost+found conflict.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pelican-db",
      "description": "Default database name. Pelican uses this database for all its data.",
      "secret": false,
      "strategy": "default",
      "default": "pelican"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "pelican-db",
      "description": "Port PostgreSQL listens on inside the container. Must stay 5432.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pelican-db",
      "description": "PostgreSQL superuser username. Referenced by pelican as ${{pelican-db.POSTGRES_USER}}.",
      "secret": false,
      "strategy": "default",
      "default": "pelican"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pelican-db",
      "description": "PostgreSQL superuser password. Auto-generated at deploy time. Referenced by pelican as ${{pelican-db.POSTGRES_PASSWORD}}.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "APP_ENV",
      "service": "pelican",
      "description": "Application environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "APP_URL",
      "service": "pelican",
      "description": "Public URL for the panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "pelican",
      "description": "PostgreSQL hostname. Auto-resolved to pelican-db service private domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "pelican",
      "description": "PostgreSQL port. Auto-resolved from pelican-db service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_DEBUG",
      "service": "pelican",
      "description": "Enable debug mode",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "REDIS_HOST",
      "service": "pelican",
      "description": "Redis hostname. Auto-resolved to pelican-redis service private domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "pelican",
      "description": "Redis port. Auto-resolved from pelican-redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SKIP_CADDY",
      "service": "pelican",
      "description": "Skip Caddy web server",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DB_DATABASE",
      "service": "pelican",
      "description": "Database name. Auto-resolved from pelican-db service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "pelican",
      "description": "Database password. Auto-resolved from pelican-db service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "pelican",
      "description": "Database username. Auto-resolved from pelican-db service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAIL_DRIVER",
      "service": "pelican",
      "description": "Mail driver (log, smtp)",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "BEHIND_PROXY",
      "service": "pelican",
      "description": "Set true if behind a reverse proxy",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CACHE_DRIVER",
      "service": "pelican",
      "description": "Cache driver (file, redis, memcached)",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "QUEUE_DRIVER",
      "service": "pelican",
      "description": "Queue driver (database, redis, sync)",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "DB_CONNECTION",
      "service": "pelican",
      "description": "Database driver (sqlite, mysql, pgsql)",
      "secret": false,
      "strategy": "default",
      "default": "pgsql"
    },
    {
      "key": "SESSION_DRIVER",
      "service": "pelican",
      "description": "Session driver (file, redis, cookie, database)",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "TRUSTED_PROXIES",
      "service": "pelican",
      "description": "Trusted proxy IPs",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "REDIS_HOST",
      "service": "pelican-redis",
      "description": "Redis internal hostname. Referenced by pelican as ${{pelican-redis.REDIS_HOST}}.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "pelican-redis",
      "description": "Redis server listening port. Referenced by pelican as ${{pelican-redis.REDIS_PORT}}.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pelican"
      }
    },
    "cli": "railway deploy --template pelican",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a23c8dc8-be4a-4ed0-a382-5e3b636c0409",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2704a506-4647-459c-841f-9dfc17b36d4b": {
                  "icon": null,
                  "name": "pelican-db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume. Points below the mount root to avoid the lost+found conflict.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database name. Pelican uses this database for all its data.",
                      "defaultValue": "pelican"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": false,
                      "description": "Port PostgreSQL listens on inside the container. Must stay 5432.",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser username. Referenced by pelican as ${{pelican-db.POSTGRES_USER}}.",
                      "defaultValue": "pelican"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser password. Auto-generated at deploy time. Referenced by pelican as ${{pelican-db.POSTGRES_PASSWORD}}.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2704a506-4647-459c-841f-9dfc17b36d4b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "8e50be0d-3434-4122-be06-719e9ef5625b": {
                  "icon": null,
                  "name": "pelican",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/pelican",
                    "rootDirectory": "services/pelican"
                  },
                  "variables": {
                    "APP_ENV": {
                      "isOptional": false,
                      "description": "Application environment",
                      "defaultValue": "production"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public URL for the panel",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "PostgreSQL hostname. Auto-resolved to pelican-db service private domain.",
                      "defaultValue": "${{pelican-db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "PostgreSQL port. Auto-resolved from pelican-db service.",
                      "defaultValue": "${{pelican-db.POSTGRES_PORT}}"
                    },
                    "APP_DEBUG": {
                      "isOptional": false,
                      "description": "Enable debug mode",
                      "defaultValue": "false"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis hostname. Auto-resolved to pelican-redis service private domain.",
                      "defaultValue": "${{pelican-redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port. Auto-resolved from pelican-redis service.",
                      "defaultValue": "${{pelican-redis.REDIS_PORT}}"
                    },
                    "SKIP_CADDY": {
                      "isOptional": false,
                      "description": "Skip Caddy web server",
                      "defaultValue": "false"
                    },
                    "DB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name. Auto-resolved from pelican-db service.",
                      "defaultValue": "${{pelican-db.POSTGRES_DB}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password. Auto-resolved from pelican-db service.",
                      "defaultValue": "${{pelican-db.POSTGRES_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Database username. Auto-resolved from pelican-db service.",
                      "defaultValue": "${{pelican-db.POSTGRES_USER}}"
                    },
                    "MAIL_DRIVER": {
                      "isOptional": false,
                      "description": "Mail driver (log, smtp)",
                      "defaultValue": "log"
                    },
                    "BEHIND_PROXY": {
                      "isOptional": false,
                      "description": "Set true if behind a reverse proxy",
                      "defaultValue": "true"
                    },
                    "CACHE_DRIVER": {
                      "isOptional": false,
                      "description": "Cache driver (file, redis, memcached)",
                      "defaultValue": "redis"
                    },
                    "QUEUE_DRIVER": {
                      "isOptional": false,
                      "description": "Queue driver (database, redis, sync)",
                      "defaultValue": "redis"
                    },
                    "DB_CONNECTION": {
                      "isOptional": false,
                      "description": "Database driver (sqlite, mysql, pgsql)",
                      "defaultValue": "pgsql"
                    },
                    "SESSION_DRIVER": {
                      "isOptional": false,
                      "description": "Session driver (file, redis, cookie, database)",
                      "defaultValue": "redis"
                    },
                    "TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "Trusted proxy IPs",
                      "defaultValue": "*"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "8e50be0d-3434-4122-be06-719e9ef5625b": {
                      "mountPath": "/pelican-data"
                    }
                  }
                },
                "ca7abccd-bd48-4459-93d5-5e1d4918b46a": {
                  "icon": null,
                  "name": "pelican-redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7"
                  },
                  "variables": {
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis internal hostname. Referenced by pelican as ${{pelican-redis.REDIS_HOST}}.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis server listening port. Referenced by pelican as ${{pelican-redis.REDIS_PORT}}.",
                      "defaultValue": "6379"
                    }
                  },
                  "volumeMounts": {
                    "ca7abccd-bd48-4459-93d5-5e1d4918b46a": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T13:32:45.587Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T11:51:00.970Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4ee32f6876a143b58e34",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 208,
    "typical_workflow_seconds": 6,
    "typical_queue_seconds": 0,
    "typical_init_seconds": 0,
    "typical_build_seconds": 40,
    "typical_deploy_seconds": 10,
    "slowest_service": "pelican"
  }
}
