{
  "manifest_version": "1.0.0",
  "template": {
    "id": "42386a6a-2eca-40ce-8ba7-6c5251ec022e",
    "slug": "openship-updated",
    "name": "OpenShip",
    "description": "Self-hosted deployment platform to build, ship, and route apps.",
    "url": "https://railway.com/deploy/openship-updated",
    "upstream": {
      "repo_url": "https://github.com/arloodots/openship"
    }
  },
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "api",
      "source": {
        "repo": "https://github.com/arloodots/openship"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "dashboard",
      "source": {
        "repo": "https://github.com/arloodots/openship"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "redis",
      "description": "Private hostname used to connect to the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "redis",
      "description": "Default port used by Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "redis",
      "description": "Redis username used for authentication.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "redis",
      "description": "Connection string for connecting to Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "redis",
      "description": "Exposes the Redis password through the REDISPASSWORD variable.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Generates a secure 32-character Redis password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "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": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "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": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "api",
      "description": "Port used by the Openship API.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "NODE_ENV",
      "service": "api",
      "description": "Runs the API in production mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "api",
      "description": "Private Redis connection URL used by the API.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLOUD_MODE",
      "service": "api",
      "description": "Disables Openship Cloud mode for this self-hosted deployment.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DEPLOY_MODE",
      "service": "api",
      "description": "Configures Openship to use Docker for deployments.",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "TRUST_PROXY",
      "service": "api",
      "description": "Trusts the Railway proxy when determining the original request.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_URL",
      "service": "api",
      "description": "Private PostgreSQL connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "INTERNAL_TOKEN",
      "service": "api",
      "description": "Secret token used for secure internal API communication.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENSHIP_TARGET",
      "service": "api",
      "description": "Configures Openship to use the local deployment target.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "SYSTEM_DEBUG_LOGS",
      "service": "api",
      "description": "Disables verbose system debug logging.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "api",
      "description": "Secret used by Better Auth for authentication security.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENSHIP_PUBLIC_URL",
      "service": "api",
      "description": "Public HTTPS URL of the Openship dashboard.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OPENSHIP_REQUIRE_REDIS",
      "service": "api",
      "description": "Requires Redis for the Openship API.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENSHIP_EXTRA_TRUSTED_ORIGINS",
      "service": "api",
      "description": "Allows requests from the public dashboard domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "dashboard",
      "description": "Port used by the Openship dashboard.",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "NODE_ENV",
      "service": "dashboard",
      "description": "Runs Openship in production mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "OPENSHIP_TARGET",
      "service": "dashboard",
      "description": "Configures Openship to use the local deployment target.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "INTERNAL_API_URL",
      "service": "dashboard",
      "description": "Private URL used by the dashboard to communicate with the API.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENSHIP_PUBLIC_URL",
      "service": "dashboard",
      "description": "Public HTTPS URL of the Openship dashboard.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_API_PROXY",
      "service": "dashboard",
      "description": "Enables the frontend API proxy.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_PUBLIC_URL",
      "service": "dashboard",
      "description": "Public URL exposed to the frontend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openship-updated"
      }
    },
    "cli": "railway deploy --template openship-updated",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "42386a6a-2eca-40ce-8ba7-6c5251ec022e",
            "serializedConfig": {
              "services": {
                "0e0e66fe-3d6f-4567-81b8-5ceea38ce5fd": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname used to connect to the Redis service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Default port used by Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis username used for authentication.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis over the private network.",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Exposes the Redis password through the REDISPASSWORD variable.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generates a secure 32-character Redis password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "0e0e66fe-3d6f-4567-81b8-5ceea38ce5fd": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "5e6df924-060b-4e42-b44a-43b9783d2114": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "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": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "5e6df924-060b-4e42-b44a-43b9783d2114": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "69192164-03f7-41f2-a863-21a6d830056c": {
                  "name": "api",
                  "source": {
                    "repo": "arloodots/openship"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port used by the Openship API.",
                      "defaultValue": "4000"
                    },
                    "NODE_ENV": {
                      "description": "Runs the API in production mode.",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "description": "Private Redis connection URL used by the API.",
                      "defaultValue": "redis://${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "CLOUD_MODE": {
                      "description": "Disables Openship Cloud mode for this self-hosted deployment.",
                      "defaultValue": "false"
                    },
                    "DEPLOY_MODE": {
                      "description": "Configures Openship to use Docker for deployments.",
                      "defaultValue": "docker"
                    },
                    "TRUST_PROXY": {
                      "description": "Trusts the Railway proxy when determining the original request.",
                      "defaultValue": "true"
                    },
                    "DATABASE_URL": {
                      "description": "Private PostgreSQL connection URL.",
                      "defaultValue": "postgresql://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}"
                    },
                    "INTERNAL_TOKEN": {
                      "description": "Secret token used for secure internal API communication.",
                      "defaultValue": "{{INTERNAL_TOKEN}}"
                    },
                    "OPENSHIP_TARGET": {
                      "description": "Configures Openship to use the local deployment target.",
                      "defaultValue": "local"
                    },
                    "SYSTEM_DEBUG_LOGS": {
                      "description": "Disables verbose system debug logging.",
                      "defaultValue": "false"
                    },
                    "BETTER_AUTH_SECRET": {
                      "description": "Secret used by Better Auth for authentication security.",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "OPENSHIP_PUBLIC_URL": {
                      "description": "Public HTTPS URL of the Openship dashboard.",
                      "defaultValue": "https://${{dashboard.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OPENSHIP_REQUIRE_REDIS": {
                      "description": "Requires Redis for the Openship API.",
                      "defaultValue": "true"
                    },
                    "OPENSHIP_EXTRA_TRUSTED_ORIGINS": {
                      "description": "Allows requests from the public dashboard domain.",
                      "defaultValue": "https://${{dashboard.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  }
                },
                "7583f5b3-9e7b-452b-a620-e944049080fd": {
                  "name": "dashboard",
                  "source": {
                    "repo": "arloodots/openship"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port used by the Openship dashboard.",
                      "defaultValue": "3001"
                    },
                    "NODE_ENV": {
                      "description": "Runs Openship in production mode.",
                      "defaultValue": "production"
                    },
                    "OPENSHIP_TARGET": {
                      "description": "Configures Openship to use the local deployment target.",
                      "defaultValue": "local"
                    },
                    "INTERNAL_API_URL": {
                      "description": "Private URL used by the dashboard to communicate with the API.",
                      "defaultValue": "http://${{api.RAILWAY_PRIVATE_DOMAIN}}:4000"
                    },
                    "OPENSHIP_PUBLIC_URL": {
                      "description": "Public HTTPS URL of the Openship dashboard.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_API_PROXY": {
                      "description": "Enables the frontend API proxy.",
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_PUBLIC_URL": {
                      "description": "Public URL exposed to the frontend.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T18:18:14.915Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_64c857c578324e81abf7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 372,
    "typical_build_seconds": 261,
    "typical_start_seconds": 31,
    "slowest_service": "api"
  }
}
