{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8236b467-b612-4046-a2c2-1d47277abb09",
    "slug": "pixelfed",
    "name": "Pixelfed | Fediverse Photo Sharing, Instagram Alternative",
    "description": "Your own Instagram on the Fediverse — photos, albums, federation built in.",
    "url": "https://railway.com/deploy/pixelfed",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/pixelfed-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:7-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "mysql",
      "source": {
        "image": "mysql:8"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "pixelfed",
      "source": {
        "repo": "https://github.com/nomideusz/pixelfed-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQL_USER",
      "service": "mysql",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "pixelfed"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "mysql",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "pixelfed"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "mysql",
      "description": "Database password. Auto generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_RANDOM_ROOT_PASSWORD",
      "service": "mysql",
      "description": "Don't change.",
      "secret": true,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PORT",
      "service": "pixelfed",
      "description": "Port for Railway healthcheck probing. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "APP_ENV",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "APP_URL",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "APP_NAME",
      "service": "pixelfed",
      "description": "Instance name shown in the UI and metadata.",
      "secret": false,
      "strategy": "default",
      "default": "Pixelfed"
    },
    {
      "key": "APP_DEBUG",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "APP_DOMAIN",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change. Federation identities are tied to this domain — attach your custom domain BEFORE federating.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDIS_HOST",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_DATABASE",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LOG_CHANNEL",
      "service": "pixelfed",
      "description": "Logs go to Railway's log view.",
      "secret": false,
      "strategy": "default",
      "default": "stderr"
    },
    {
      "key": "MAIL_DRIVER",
      "service": "pixelfed",
      "description": "Set to smtp (with MAIL_HOST/PORT/USERNAME/PASSWORD/ENCRYPTION/FROM_ADDRESS) for real emails.",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "ACTIVITY_PUB",
      "service": "pixelfed",
      "description": "ActivityPub federation with Mastodon & the Fediverse.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ADMIN_DOMAIN",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CACHE_DRIVER",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "PF_MAX_USERS",
      "service": "pixelfed",
      "description": "Maximum number of accounts on this instance.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "QUEUE_DRIVER",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "REDIS_CLIENT",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "phpredis"
    },
    {
      "key": "DB_CONNECTION",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "OAUTH_ENABLED",
      "service": "pixelfed",
      "description": "Required for mobile/third-party apps.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PF_MAKE_ADMIN",
      "service": "pixelfed",
      "description": "After registering in the web UI, set this to your username and redeploy — that account becomes admin.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TRUST_PROXIES",
      "service": "pixelfed",
      "description": "Don't change — Railway terminates TLS in front of the app.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "HORIZON_PREFIX",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "horizon-"
    },
    {
      "key": "MAX_PHOTO_SIZE",
      "service": "pixelfed",
      "description": "Max photo/video size in KB.",
      "secret": false,
      "strategy": "default",
      "default": "15000"
    },
    {
      "key": "SESSION_DOMAIN",
      "service": "pixelfed",
      "description": "Wired automatically. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SESSION_DRIVER",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "AP_REMOTE_FOLLOW",
      "service": "pixelfed",
      "description": "Allow remote follows from other Fediverse servers.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BROADCAST_DRIVER",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "OPEN_REGISTRATION",
      "service": "pixelfed",
      "description": "Anyone can sign up. Set false after creating your account for a private instance.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_CONFIG_CACHE",
      "service": "pixelfed",
      "description": "Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENFORCE_EMAIL_VERIFICATION",
      "service": "pixelfed",
      "description": "Keep false unless you configure a real mailer (MAIL_* vars).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pixelfed"
      }
    },
    "cli": "railway deploy --template pixelfed",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8236b467-b612-4046-a2c2-1d47277abb09",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "975c8e9c-3f5b-4c3b-842d-b9965c2dd5ca": {
                  "icon": "https://raw.githubusercontent.com/docker-library/docs/master/redis/logo.png",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "975c8e9c-3f5b-4c3b-842d-b9965c2dd5ca": {
                      "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
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "e3f870a4-826e-4811-b36a-a9e264339bf9": {
                  "icon": "https://www.mysql.com/common/logos/logo-mysql-170x115.png",
                  "name": "mysql",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --datadir=/var/lib/mysql/data",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8"
                  },
                  "variables": {
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "pixelfed"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "pixelfed"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password. Auto generated.",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_RANDOM_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "1"
                    }
                  },
                  "volumeMounts": {
                    "e3f870a4-826e-4811-b36a-a9e264339bf9": {
                      "mountPath": "/var/lib/mysql"
                    }
                  },
                  "haTemplateCode": "mysql-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "MySQL Replicas",
                      "options": [
                        2,
                        4,
                        6,
                        8
                      ],
                      "nodeLabel": "MySQL",
                      "description": "Requires odd count for quorum",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your MySQL instance to an HA cluster with Group Replication failover and HAProxy routing to the primary.",
                    "supportedImageMajorVersions": [
                      8,
                      9
                    ]
                  }
                },
                "fb1747fb-6f8e-447a-8d8c-f5122129b522": {
                  "icon": "https://raw.githubusercontent.com/pixelfed/pixelfed/dev/public/img/favicon.png",
                  "name": "pixelfed",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/instance",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/pixelfed-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port for Railway healthcheck probing. Do not change.",
                      "defaultValue": "80"
                    },
                    "APP_ENV": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "production"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "${{mysql.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "3306"
                    },
                    "APP_NAME": {
                      "isOptional": false,
                      "description": "Instance name shown in the UI and metadata.",
                      "defaultValue": "Pixelfed"
                    },
                    "APP_DEBUG": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "false"
                    },
                    "APP_DOMAIN": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change. Federation identities are tied to this domain — attach your custom domain BEFORE federating.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "6379"
                    },
                    "DB_DATABASE": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "${{mysql.MYSQL_DATABASE}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "${{mysql.MYSQL_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "${{mysql.MYSQL_USER}}"
                    },
                    "LOG_CHANNEL": {
                      "isOptional": false,
                      "description": "Logs go to Railway's log view.",
                      "defaultValue": "stderr"
                    },
                    "MAIL_DRIVER": {
                      "isOptional": false,
                      "description": "Set to smtp (with MAIL_HOST/PORT/USERNAME/PASSWORD/ENCRYPTION/FROM_ADDRESS) for real emails.",
                      "defaultValue": "log"
                    },
                    "ACTIVITY_PUB": {
                      "isOptional": false,
                      "description": "ActivityPub federation with Mastodon & the Fediverse.",
                      "defaultValue": "true"
                    },
                    "ADMIN_DOMAIN": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CACHE_DRIVER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "redis"
                    },
                    "PF_MAX_USERS": {
                      "isOptional": false,
                      "description": "Maximum number of accounts on this instance.",
                      "defaultValue": "1000"
                    },
                    "QUEUE_DRIVER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "redis"
                    },
                    "REDIS_CLIENT": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "phpredis"
                    },
                    "DB_CONNECTION": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "mysql"
                    },
                    "OAUTH_ENABLED": {
                      "isOptional": false,
                      "description": "Required for mobile/third-party apps.",
                      "defaultValue": "true"
                    },
                    "PF_MAKE_ADMIN": {
                      "isOptional": false,
                      "description": "After registering in the web UI, set this to your username and redeploy — that account becomes admin.",
                      "defaultValue": "{{PF_MAKE_ADMIN}}"
                    },
                    "TRUST_PROXIES": {
                      "isOptional": false,
                      "description": "Don't change — Railway terminates TLS in front of the app.",
                      "defaultValue": "*"
                    },
                    "HORIZON_PREFIX": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "horizon-"
                    },
                    "MAX_PHOTO_SIZE": {
                      "isOptional": false,
                      "description": "Max photo/video size in KB.",
                      "defaultValue": "15000"
                    },
                    "SESSION_DOMAIN": {
                      "isOptional": false,
                      "description": "Wired automatically. Don't change.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SESSION_DRIVER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "database"
                    },
                    "AP_REMOTE_FOLLOW": {
                      "isOptional": false,
                      "description": "Allow remote follows from other Fediverse servers.",
                      "defaultValue": "true"
                    },
                    "BROADCAST_DRIVER": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "log"
                    },
                    "OPEN_REGISTRATION": {
                      "isOptional": false,
                      "description": "Anyone can sign up. Set false after creating your account for a private instance.",
                      "defaultValue": "true"
                    },
                    "ENABLE_CONFIG_CACHE": {
                      "isOptional": false,
                      "description": "Don't change.",
                      "defaultValue": "true"
                    },
                    "ENFORCE_EMAIL_VERIFICATION": {
                      "isOptional": false,
                      "description": "Keep false unless you configure a real mailer (MAIL_* vars).",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "fb1747fb-6f8e-447a-8d8c-f5122129b522": {
                      "mountPath": "/var/www/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "pixelfed",
      "method": "GET",
      "path": "/api/v1/instance",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T04:14:38.010Z",
  "generator_version": "0.1.0"
}
