{
  "manifest_version": "1.0.0",
  "template": {
    "id": "61d28da5-0def-406c-8c12-babbe0dabd17",
    "slug": "apache-answer-qa",
    "name": "Apache Answer | Open Source Q&A Platform",
    "description": "Self-host Apache Answer. Community Knowledge Base, Help Center & more",
    "url": "https://railway.com/deploy/apache-answer-qa",
    "upstream": {
      "image": "apache/answer:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Apache Answer",
      "source": {
        "image": "apache/answer:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Apache Answer",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DB_HOST",
      "service": "Apache Answer",
      "description": "Postgres host and port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_NAME",
      "service": "Apache Answer",
      "description": "Postgres database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_TYPE",
      "service": "Apache Answer",
      "description": "Database backend type",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "LANGUAGE",
      "service": "Apache Answer",
      "description": "Interface language",
      "secret": false,
      "strategy": "default",
      "default": "en-US"
    },
    {
      "key": "SITE_URL",
      "service": "Apache Answer",
      "description": "Public site URL with HTTPS",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SITE_NAME",
      "service": "Apache Answer",
      "description": "Platform display name",
      "secret": false,
      "strategy": "default",
      "default": "Apache Answer"
    },
    {
      "key": "ADMIN_NAME",
      "service": "Apache Answer",
      "description": "Admin account username",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "Apache Answer",
      "description": "Admin account email",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DB_PASSWORD",
      "service": "Apache Answer",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "Apache Answer",
      "description": "Postgres username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTO_INSTALL",
      "service": "Apache Answer",
      "description": "Enable automated first-run setup",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "INSTALL_PORT",
      "service": "Apache Answer",
      "description": "Installation wizard port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "CONTACT_EMAIL",
      "service": "Apache Answer",
      "description": "Support contact email",
      "secret": false,
      "strategy": "default",
      "default": "admin@answer.local"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "Apache Answer",
      "description": "Admin password (bootstrap-only)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "EXTERNAL_CONTENT_DISPLAY",
      "service": "Apache Answer",
      "description": "External media embedding policy",
      "secret": false,
      "strategy": "default",
      "default": "always_display"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data storage directory",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal Postgres host address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Postgres server listening port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Default Postgres username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password for Postgres user",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Initial database created on startup",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Internal Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Default database superuser name",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Self-signed SSL certificate validity",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Postgres database user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Graceful shutdown draining duration",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "apache-answer-qa"
      }
    },
    "cli": "railway deploy --template apache-answer-qa",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "61d28da5-0def-406c-8c12-babbe0dabd17",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "10c209f1-1c95-491a-bd5e-eda0b8509086": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/apache-answer.svg",
                  "name": "Apache Answer",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "apache/answer:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "80"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Postgres host and port",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Postgres database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Database backend type",
                      "defaultValue": "postgres"
                    },
                    "LANGUAGE": {
                      "isOptional": false,
                      "description": "Interface language",
                      "defaultValue": "en-US"
                    },
                    "SITE_URL": {
                      "isOptional": false,
                      "description": "Public site URL with HTTPS",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SITE_NAME": {
                      "isOptional": false,
                      "description": "Platform display name",
                      "defaultValue": "Apache Answer"
                    },
                    "ADMIN_NAME": {
                      "isOptional": false,
                      "description": "Admin account username",
                      "defaultValue": "{{ADMIN_NAME}}"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Admin account email",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres username",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "AUTO_INSTALL": {
                      "isOptional": false,
                      "description": "Enable automated first-run setup",
                      "defaultValue": "true"
                    },
                    "INSTALL_PORT": {
                      "isOptional": false,
                      "description": "Installation wizard port",
                      "defaultValue": "80"
                    },
                    "CONTACT_EMAIL": {
                      "isOptional": false,
                      "description": "Support contact email",
                      "defaultValue": "admin@answer.local"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin password (bootstrap-only)",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "EXTERNAL_CONTENT_DISPLAY": {
                      "isOptional": false,
                      "description": "External media embedding policy",
                      "defaultValue": "always_display"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "10c209f1-1c95-491a-bd5e-eda0b8509086": {
                      "mountPath": "/data"
                    }
                  }
                },
                "a57c5114-83f6-498e-b1bf-8ce89b5bb91b": {
                  "icon": "https://devicons.railway.app/i/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": "Postgres data storage directory",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal Postgres host address",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres server listening port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Default Postgres username",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for Postgres user",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial database created on startup",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal Postgres connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Default database superuser name",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Self-signed SSL certificate validity",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres database user password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public Postgres connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown draining duration",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "a57c5114-83f6-498e-b1bf-8ce89b5bb91b": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0"
}
