{
  "manifest_version": "1.0.0",
  "template": {
    "id": "67ed7527-df9c-4d3f-a984-5b591b3e9088",
    "slug": "gotify",
    "name": "Gotify",
    "description": "Gotify push notification server on Railway, REST API plus WebSocket stream",
    "url": "https://railway.com/deploy/gotify",
    "upstream": {
      "image": "gotify/server:latest"
    }
  },
  "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": "gotify",
      "source": {
        "image": "gotify/server:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "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": "gotify",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "GOTIFY_LOGLEVEL",
      "service": "gotify",
      "description": "Minimum log severity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "GOTIFY_PLUGINSDIR",
      "service": "gotify",
      "description": "Plugin directory, on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/plugins"
    },
    {
      "key": "GOTIFY_SERVER_PORT",
      "service": "gotify",
      "description": "Port Gotify binds, overrides the image default 80",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "GOTIFY_PASSSTRENGTH",
      "service": "gotify",
      "description": "bcrypt cost for stored passwords",
      "secret": false,
      "strategy": "default",
      "default": "12"
    },
    {
      "key": "GOTIFY_REGISTRATION",
      "service": "gotify",
      "description": "Public self-registration stays closed",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GOTIFY_DATABASE_DIALECT",
      "service": "gotify",
      "description": "Database driver, sqlite3 is the alternative",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "GOTIFY_DEFAULTUSER_NAME",
      "service": "gotify",
      "description": "First admin username, empty database only",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "GOTIFY_DEFAULTUSER_PASS",
      "service": "gotify",
      "description": "First admin password, empty database only",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GOTIFY_UPLOADEDIMAGESDIR",
      "service": "gotify",
      "description": "Application icons, on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/images"
    },
    {
      "key": "GOTIFY_DATABASE_CONNECTION",
      "service": "gotify",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GOTIFY_SERVER_SECURECOOKIE",
      "service": "gotify",
      "description": "Secure flag on the session cookie",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GOTIFY_SERVER_TRUSTEDPROXIES",
      "service": "gotify",
      "description": "Railway edge ranges",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10,fd00::/8,152.233.0.0/17"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gotify"
      }
    },
    "cli": "railway deploy --template gotify",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "67ed7527-df9c-4d3f-a984-5b591b3e9088",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "ca164e6d-aece-4017-be18-b4bc0f0adecb": {
                  "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": {
                    "ca164e6d-aece-4017-be18-b4bc0f0adecb": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "da2efae6-889d-4b0f-9c19-f317c36ac8f4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/gotify.svg",
                  "name": "gotify",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "gotify/server:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "8080"
                    },
                    "GOTIFY_LOGLEVEL": {
                      "isOptional": false,
                      "description": "Minimum log severity",
                      "defaultValue": "info"
                    },
                    "GOTIFY_PLUGINSDIR": {
                      "isOptional": false,
                      "description": "Plugin directory, on the volume",
                      "defaultValue": "/data/plugins"
                    },
                    "GOTIFY_SERVER_PORT": {
                      "isOptional": false,
                      "description": "Port Gotify binds, overrides the image default 80",
                      "defaultValue": "8080"
                    },
                    "GOTIFY_PASSSTRENGTH": {
                      "isOptional": false,
                      "description": "bcrypt cost for stored passwords",
                      "defaultValue": "12"
                    },
                    "GOTIFY_REGISTRATION": {
                      "isOptional": false,
                      "description": "Public self-registration stays closed",
                      "defaultValue": "false"
                    },
                    "GOTIFY_DATABASE_DIALECT": {
                      "isOptional": false,
                      "description": "Database driver, sqlite3 is the alternative",
                      "defaultValue": "postgres"
                    },
                    "GOTIFY_DEFAULTUSER_NAME": {
                      "isOptional": false,
                      "description": "First admin username, empty database only",
                      "defaultValue": "admin"
                    },
                    "GOTIFY_DEFAULTUSER_PASS": {
                      "isOptional": false,
                      "description": "First admin password, empty database only",
                      "defaultValue": "{{GOTIFY_DEFAULTUSER_PASS}}"
                    },
                    "GOTIFY_UPLOADEDIMAGESDIR": {
                      "isOptional": false,
                      "description": "Application icons, on the volume",
                      "defaultValue": "/data/images"
                    },
                    "GOTIFY_DATABASE_CONNECTION": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "host=${{Postgres.PGHOST}} port=${{Postgres.PGPORT}} user=${{Postgres.PGUSER}} dbname=${{Postgres.PGDATABASE}} password='${{Postgres.PGPASSWORD}}' sslmode=require"
                    },
                    "GOTIFY_SERVER_SECURECOOKIE": {
                      "isOptional": false,
                      "description": "Secure flag on the session cookie",
                      "defaultValue": "true"
                    },
                    "GOTIFY_SERVER_TRUSTEDPROXIES": {
                      "isOptional": false,
                      "description": "Railway edge ranges",
                      "defaultValue": "100.64.0.0/10,fd00::/8,152.233.0.0/17"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "da2efae6-889d-4b0f-9c19-f317c36ac8f4": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gotify",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T22:19:59.421Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fffcdba0dc0f4fb2a2a1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 68,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "gotify"
  }
}
