{
  "manifest_version": "1.0.0",
  "template": {
    "id": "067d187e-73f3-4c5b-9980-984b52cf82e2",
    "slug": "seaweedfs-cluster",
    "name": "SeaweedFS",
    "description": "Distributed storage system with an S3-compatible API",
    "url": "https://railway.com/deploy/seaweedfs-cluster",
    "upstream": {
      "image": "chrislusf/seaweedfs:4.44"
    }
  },
  "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": "admin",
      "source": {
        "image": "chrislusf/seaweedfs:4.44"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "master",
      "source": {
        "image": "chrislusf/seaweedfs:4.44"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "worker",
      "source": {
        "image": "chrislusf/seaweedfs:4.44"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "filer",
      "source": {
        "image": "chrislusf/seaweedfs:4.44"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "volume2",
      "source": {
        "image": "chrislusf/seaweedfs:4.44"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "volume1",
      "source": {
        "image": "chrislusf/seaweedfs:4.44"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "s3",
      "source": {
        "image": "chrislusf/seaweedfs:4.44"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "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": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "admin",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "23646"
    },
    {
      "key": "MASTER_HOST",
      "service": "admin",
      "description": "Master address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SEAWEED_ADMIN_USER",
      "service": "admin",
      "description": "Console username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "SEAWEED_ADMIN_PASSWORD",
      "service": "admin",
      "description": "Console password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "master",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "9333"
    },
    {
      "key": "SEAWEEDFS_REPLICATION",
      "service": "master",
      "description": "Copies per volume: dc/rack/node",
      "secret": false,
      "strategy": "default",
      "default": "001"
    },
    {
      "key": "SEAWEEDFS_VOLUME_SIZE_LIMIT_MB",
      "service": "master",
      "description": "Max size of one volume file",
      "secret": false,
      "strategy": "default",
      "default": "128"
    },
    {
      "key": "WEED_MASTER_VOLUME_GROWTH_COPY_1",
      "service": "master",
      "description": "Volumes pre-allocated, unreplicated",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "WEED_MASTER_VOLUME_GROWTH_COPY_2",
      "service": "master",
      "description": "Volumes pre-allocated, two copies",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "WEED_MASTER_VOLUME_GROWTH_COPY_3",
      "service": "master",
      "description": "Volumes pre-allocated, three copies",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "PORT",
      "service": "worker",
      "description": "Metrics port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "9327"
    },
    {
      "key": "ADMIN_HOST",
      "service": "worker",
      "description": "Admin HTTP address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "filer",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8888"
    },
    {
      "key": "MASTER_HOST",
      "service": "filer",
      "description": "Master address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WEED_POSTGRES2_PORT",
      "service": "filer",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEED_LEVELDB2_ENABLED",
      "service": "filer",
      "description": "Disable the image's embedded store",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "WEED_POSTGRES2_ENABLED",
      "service": "filer",
      "description": "Use Postgres for filer metadata",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WEED_POSTGRES2_SSLMODE",
      "service": "filer",
      "description": "Encrypt without cert validation",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "WEED_POSTGRES2_DATABASE",
      "service": "filer",
      "description": "Postgres database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEED_POSTGRES2_HOSTNAME",
      "service": "filer",
      "description": "Postgres private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEED_POSTGRES2_PASSWORD",
      "service": "filer",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEED_POSTGRES2_USERNAME",
      "service": "filer",
      "description": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "volume2",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "MASTER_HOST",
      "service": "volume2",
      "description": "Master address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "volume2",
      "description": "Deregister before shutdown",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "PORT",
      "service": "volume1",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "MASTER_HOST",
      "service": "volume1",
      "description": "Master address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "volume1",
      "description": "Deregister before shutdown",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "PORT",
      "service": "s3",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8333"
    },
    {
      "key": "FILER_HOST",
      "service": "s3",
      "description": "Filer address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_EXTERNAL_URL",
      "service": "s3",
      "description": "Host used for signatures",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "s3",
      "description": "S3 access key, enables auth",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "s3",
      "description": "S3 secret key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "seaweedfs-cluster"
      }
    },
    "cli": "railway deploy --template seaweedfs-cluster",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "067d187e-73f3-4c5b-9980-984b52cf82e2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "088dd596-6e32-4015-869e-3159b2b04234": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/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": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "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": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "088dd596-6e32-4015-869e-3159b2b04234": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "12ca2a9f-576c-42b9-87e8-c548682b8205": {
                  "icon": "https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/icon.svg",
                  "name": "admin",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'M=\"${MASTER_HOST:-}\"; case \"$M\" in \"\"|\":\"*) M=master.railway.internal:9333;; esac; exec /entrypoint.sh -logtostderr=true admin -master=\"$M\" -port=23646 -dataDir=/data -adminUser=\"${SEAWEED_ADMIN_USER:-admin}\" -adminPassword=\"$SEAWEED_ADMIN_PASSWORD\"'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.44"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "23646"
                    },
                    "MASTER_HOST": {
                      "isOptional": false,
                      "description": "Master address",
                      "defaultValue": "${{master.RAILWAY_PRIVATE_DOMAIN}}:9333"
                    },
                    "SEAWEED_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Console username",
                      "defaultValue": "admin"
                    },
                    "SEAWEED_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Console password",
                      "defaultValue": "{{SEAWEED_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:23646": {
                        "port": 23646
                      }
                    }
                  },
                  "volumeMounts": {
                    "12ca2a9f-576c-42b9-87e8-c548682b8205": {
                      "mountPath": "/data"
                    }
                  }
                },
                "15b817b4-8e45-4289-9959-272f15a6daea": {
                  "icon": "https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/icon.svg",
                  "name": "master",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'IP=\"${RAILWAY_PRIVATE_DOMAIN:-}\"; [ -z \"$IP\" ] && IP=master.railway.internal; exec /entrypoint.sh master -ip=\"$IP\" -ip.bind=\"[::]\" -port=9333 -defaultReplication=\"${SEAWEEDFS_REPLICATION:-001}\" -volumeSizeLimitMB=\"${SEAWEEDFS_VOLUME_SIZE_LIMIT_MB:-256}\"'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.44"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "9333"
                    },
                    "SEAWEEDFS_REPLICATION": {
                      "isOptional": false,
                      "description": "Copies per volume: dc/rack/node",
                      "defaultValue": "001"
                    },
                    "SEAWEEDFS_VOLUME_SIZE_LIMIT_MB": {
                      "isOptional": false,
                      "description": "Max size of one volume file",
                      "defaultValue": "128"
                    },
                    "WEED_MASTER_VOLUME_GROWTH_COPY_1": {
                      "isOptional": false,
                      "description": "Volumes pre-allocated, unreplicated",
                      "defaultValue": "2"
                    },
                    "WEED_MASTER_VOLUME_GROWTH_COPY_2": {
                      "isOptional": false,
                      "description": "Volumes pre-allocated, two copies",
                      "defaultValue": "2"
                    },
                    "WEED_MASTER_VOLUME_GROWTH_COPY_3": {
                      "isOptional": false,
                      "description": "Volumes pre-allocated, three copies",
                      "defaultValue": "2"
                    }
                  },
                  "volumeMounts": {
                    "15b817b4-8e45-4289-9959-272f15a6daea": {
                      "mountPath": "/data"
                    }
                  }
                },
                "275a7aa5-f7a5-47e6-a9a7-96c4ea73c4ec": {
                  "icon": "https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/icon.svg",
                  "name": "worker",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'A=\"${ADMIN_HOST:-}\"; case \"$A\" in \"\"|\":\"*) A=admin.railway.internal:23646;; esac; exec /entrypoint.sh -logtostderr=true worker -admin=\"$A\" -metricsPort=9327'",
                    "healthcheckPath": "/metrics",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.44"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Metrics port Railway health-checks",
                      "defaultValue": "9327"
                    },
                    "ADMIN_HOST": {
                      "isOptional": false,
                      "description": "Admin HTTP address",
                      "defaultValue": "${{admin.RAILWAY_PRIVATE_DOMAIN}}:23646"
                    }
                  },
                  "volumeMounts": {
                    "275a7aa5-f7a5-47e6-a9a7-96c4ea73c4ec": {
                      "mountPath": "/data"
                    }
                  }
                },
                "457ce636-5411-4cf3-8c32-412610a6ac46": {
                  "icon": "https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/icon.svg",
                  "name": "filer",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'M=\"${MASTER_HOST:-}\"; case \"$M\" in \"\"|\":\"*) M=master.railway.internal:9333;; esac; IP=\"${RAILWAY_PRIVATE_DOMAIN:-}\"; [ -z \"$IP\" ] && IP=filer.railway.internal; exec /entrypoint.sh filer -ip=\"$IP\" -ip.bind=\"[::]\" -port=8888 -master=\"$M\"'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.44"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "8888"
                    },
                    "MASTER_HOST": {
                      "isOptional": false,
                      "description": "Master address",
                      "defaultValue": "${{master.RAILWAY_PRIVATE_DOMAIN}}:9333"
                    },
                    "WEED_POSTGRES2_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "WEED_LEVELDB2_ENABLED": {
                      "isOptional": false,
                      "description": "Disable the image's embedded store",
                      "defaultValue": "false"
                    },
                    "WEED_POSTGRES2_ENABLED": {
                      "isOptional": false,
                      "description": "Use Postgres for filer metadata",
                      "defaultValue": "true"
                    },
                    "WEED_POSTGRES2_SSLMODE": {
                      "isOptional": false,
                      "description": "Encrypt without cert validation",
                      "defaultValue": "require"
                    },
                    "WEED_POSTGRES2_DATABASE": {
                      "isOptional": false,
                      "description": "Postgres database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "WEED_POSTGRES2_HOSTNAME": {
                      "isOptional": false,
                      "description": "Postgres private hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "WEED_POSTGRES2_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "WEED_POSTGRES2_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    }
                  }
                },
                "49092938-b029-4ea3-8cc1-a3727c86002f": {
                  "icon": "https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/icon.svg",
                  "name": "volume2",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'M=\"${MASTER_HOST:-}\"; case \"$M\" in \"\"|\":\"*) M=master.railway.internal:9333;; esac; IP=\"${RAILWAY_PRIVATE_DOMAIN:-}\"; [ -z \"$IP\" ] && IP=volume2.railway.internal; exec /entrypoint.sh volume -ip=\"$IP\" -ip.bind=\"[::]\" -port=8080 -master=\"$M\" -dataCenter=railway -rack=rack1'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.44"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "8080"
                    },
                    "MASTER_HOST": {
                      "isOptional": false,
                      "description": "Master address",
                      "defaultValue": "${{master.RAILWAY_PRIVATE_DOMAIN}}:9333"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Deregister before shutdown",
                      "defaultValue": "15"
                    }
                  },
                  "volumeMounts": {
                    "49092938-b029-4ea3-8cc1-a3727c86002f": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c57e7572-1ae7-4a29-ad55-f42ebcc0dbb9": {
                  "icon": "https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/icon.svg",
                  "name": "volume1",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'M=\"${MASTER_HOST:-}\"; case \"$M\" in \"\"|\":\"*) M=master.railway.internal:9333;; esac; IP=\"${RAILWAY_PRIVATE_DOMAIN:-}\"; [ -z \"$IP\" ] && IP=volume1.railway.internal; exec /entrypoint.sh volume -ip=\"$IP\" -ip.bind=\"[::]\" -port=8080 -master=\"$M\" -dataCenter=railway -rack=rack1'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.44"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "8080"
                    },
                    "MASTER_HOST": {
                      "isOptional": false,
                      "description": "Master address",
                      "defaultValue": "${{master.RAILWAY_PRIVATE_DOMAIN}}:9333"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Deregister before shutdown",
                      "defaultValue": "15"
                    }
                  },
                  "volumeMounts": {
                    "c57e7572-1ae7-4a29-ad55-f42ebcc0dbb9": {
                      "mountPath": "/data"
                    }
                  }
                },
                "e046c92e-715a-438d-8af8-6aa40cebd0a9": {
                  "icon": "https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/note/icon.svg",
                  "name": "s3",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'F=\"${FILER_HOST:-}\"; case \"$F\" in \"\"|\":\"*) F=filer.railway.internal:8888;; esac; IP=\"${RAILWAY_PRIVATE_DOMAIN:-}\"; [ -z \"$IP\" ] && IP=s3.railway.internal; exec /entrypoint.sh s3 -ip=\"$IP\" -ip.bind=\"[::]\" -port=8333 -filer=\"$F\"'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.44"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "8333"
                    },
                    "FILER_HOST": {
                      "isOptional": false,
                      "description": "Filer address",
                      "defaultValue": "${{filer.RAILWAY_PRIVATE_DOMAIN}}:8888"
                    },
                    "S3_EXTERNAL_URL": {
                      "isOptional": false,
                      "description": "Host used for signatures",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "S3 access key, enables auth",
                      "defaultValue": "{{AWS_ACCESS_KEY_ID}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 secret key",
                      "defaultValue": "{{AWS_SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8333": {
                        "port": 8333
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "admin",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 8,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:37:02.426Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_83fc6b9ad0324a90a0ee",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 103,
    "typical_build_seconds": 0,
    "typical_start_seconds": 14,
    "slowest_service": "worker"
  }
}
