{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2b3aa978-208c-48bf-b0ad-5f0d2f0f7a5c",
    "slug": "funkwhale",
    "name": "Funkwhale",
    "description": "Federated music server — stream your library, playlists, podcasts.",
    "url": "https://railway.com/deploy/funkwhale",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/funkwhale-railway"
    }
  },
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:7-alpine"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "funkwhale",
      "source": {
        "repo": "https://github.com/nomideusz/funkwhale-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/srv/funkwhale/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "funkwhale"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "funkwhale"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Database password. Auto generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "funkwhale",
      "description": "Port for Railway healthcheck probing. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "CACHE_URL",
      "service": "funkwhale",
      "description": "Wired automatically to the redis service. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "funkwhale",
      "description": "Wired automatically to the postgres service. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "funkwhale",
      "description": "Django secret key. Auto generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "FUNKWHALE_HOSTNAME",
      "service": "funkwhale",
      "description": "Pod hostname — your federated identity. Wired automatically.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FUNKWHALE_PROTOCOL",
      "service": "funkwhale",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "FUNKWHALE_ADMIN_EMAIL",
      "service": "funkwhale",
      "description": "Admin account email.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FUNKWHALE_ADMIN_PASSWORD",
      "service": "funkwhale",
      "description": "Sign-in password for the admin account. Auto generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "FUNKWHALE_ADMIN_USERNAME",
      "service": "funkwhale",
      "description": "Admin username ('admin' and 'root' are reserved by Funkwhale).",
      "secret": false,
      "strategy": "default",
      "default": "fwadmin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "funkwhale"
      }
    },
    "cli": "railway deploy --template funkwhale",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2b3aa978-208c-48bf-b0ad-5f0d2f0f7a5c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5983b6f1-6088-4056-8b37-d4202d4a25c6": {
                  "icon": "https://media.ffycdn.net/us/redis/MAQLWqeBKmrz2TFQDmA7.svg?mod=v1/resize=2400",
                  "name": "redis",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh redis-server --save '' --appendonly no",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine"
                  },
                  "variables": {},
                  "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
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "8252f0e4-73c8-493f-905d-f7296e91e36a": {
                  "icon": "https://www.postgresql.org/media/img/about/press/elephant.png",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "funkwhale"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "funkwhale"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password. Auto generated.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "8252f0e4-73c8-493f-905d-f7296e91e36a": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c96e446a-8f5e-4b74-a4aa-4a9cd95c0e05": {
                  "icon": "https://docs.funkwhale.audio/_static/logo.svg",
                  "name": "funkwhale",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/funkwhale-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port for Railway healthcheck probing. Do not change.",
                      "defaultValue": "80"
                    },
                    "CACHE_URL": {
                      "isOptional": false,
                      "description": "Wired automatically to the redis service. Don't change.",
                      "defaultValue": "redis://${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Wired automatically to the postgres service. Don't change.",
                      "defaultValue": "postgres://funkwhale:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/funkwhale"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Django secret key. Auto generated.",
                      "defaultValue": "{{DJANGO_SECRET_KEY}}"
                    },
                    "FUNKWHALE_HOSTNAME": {
                      "isOptional": false,
                      "description": "Pod hostname — your federated identity. Wired automatically.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "FUNKWHALE_PROTOCOL": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "https"
                    },
                    "FUNKWHALE_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Admin account email.",
                      "defaultValue": "fwadmin@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "FUNKWHALE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Sign-in password for the admin account. Auto generated.",
                      "defaultValue": "{{FUNKWHALE_ADMIN_PASSWORD}}"
                    },
                    "FUNKWHALE_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Admin username ('admin' and 'root' are reserved by Funkwhale).",
                      "defaultValue": "fwadmin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "c96e446a-8f5e-4b74-a4aa-4a9cd95c0e05": {
                      "mountPath": "/srv/funkwhale/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "funkwhale",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T00:29:58.876Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6f4e09391c2246369981",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 163,
    "typical_build_seconds": 92,
    "typical_start_seconds": 41,
    "slowest_service": "funkwhale"
  }
}
