{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cc9f788d-d90c-4199-90f6-03797503f5bd",
    "slug": "6MbF4W",
    "name": "Aptabase",
    "description": "Open Source, Privacy-First Simple Analytics for Mobile, Desktop, and Web",
    "url": "https://railway.com/deploy/6MbF4W",
    "upstream": {
      "image": "ghcr.io/aptabase/aptabase:main"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server:23.8.4.69-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:15-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Aptabase",
      "source": {
        "image": "ghcr.io/aptabase/aptabase:main"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ClickHouse",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8123"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "ClickHouse",
      "description": "Provide a value for CLICKHOUSE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "Provide a value for CLICKHOUSE_USER.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Provide a value for CLICKHOUSE_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PG_PRIVATE_HOST",
      "service": "Postgres",
      "description": "Provide a value for PG_PRIVATE_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PG_PRIVATE_PORT",
      "service": "Postgres",
      "description": "Provide a value for PG_PRIVATE_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_PRIVATE_URL_DSN",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_PRIVATE_URL_DSN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BASE_URL",
      "service": "Aptabase",
      "description": "The base URL of the application, used for generating links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_HOST",
      "service": "Aptabase",
      "description": "The host of the SMTP server",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SMTP_PORT",
      "service": "Aptabase",
      "description": "**Most likely 465** - The SSL port used for sending emails via SMTP ",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AUTH_SECRET",
      "service": "Aptabase",
      "description": "A random secret key used for signing auth tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Aptabase",
      "description": "The full connection string to postgres using .NET format",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PASSWORD",
      "service": "Aptabase",
      "description": "The password for the SMTP server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SMTP_USERNAME",
      "service": "Aptabase",
      "description": "The username for the SMTP server",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "Aptabase",
      "description": "The full connection string to ClickHouse using .NET format",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_FROM_ADDRESS",
      "service": "Aptabase",
      "description": "Address to send the email from",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "6MbF4W"
      }
    },
    "cli": "railway deploy --template 6MbF4W",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cc9f788d-d90c-4199-90f6-03797503f5bd",
            "serializedConfig": {
              "services": {
                "3d47cc30-9ad8-41ee-98bb-93581093e3af": {
                  "icon": "https://devicons.railway.app/i/clickhouse.svg",
                  "name": "ClickHouse",
                  "deploy": {
                    "healthcheckPath": "/ping"
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:23.8.4.69-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8123"
                    },
                    "CLICKHOUSE_URL": {
                      "defaultValue": "Host=${{RAILWAY_PRIVATE_DOMAIN}};Port=${{PORT}};Username=${{CLICKHOUSE_USER}};Password=${{CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_USER": {
                      "defaultValue": "{{CLICKHOUSE_USER}}"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "3d47cc30-9ad8-41ee-98bb-93581093e3af": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "77443e5c-e1cd-4c9c-9934-082202dc0409": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec docker-entrypoint.sh postgres --port=${PG_PRIVATE_PORT}\""
                  },
                  "source": {
                    "image": "postgres:15-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "postgres"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "PG_PRIVATE_HOST": {
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PG_PRIVATE_PORT": {
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:${{PG_PRIVATE_PORT}}/${{POSTGRES_DB}}"
                    },
                    "DATABASE_PRIVATE_URL_DSN": {
                      "defaultValue": "Server=${{RAILWAY_PRIVATE_DOMAIN}};Port=${{PG_PRIVATE_PORT}};User Id=${{POSTGRES_USER}};Password=${{POSTGRES_PASSWORD}};Database=${{POSTGRES_DB}}"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "77443e5c-e1cd-4c9c-9934-082202dc0409": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c8faef59-eb70-42aa-8673-dfeab6fbb2fa": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1712942914/Aptabase_Logo_eampt1.svg",
                  "name": "Aptabase",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"sleep 3; exec dotnet Aptabase.dll\"",
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "ghcr.io/aptabase/aptabase:main"
                  },
                  "variables": {
                    "BASE_URL": {
                      "description": "The base URL of the application, used for generating links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_HOST": {
                      "description": "The host of the SMTP server",
                      "defaultValue": "{{SMTP_HOST}}"
                    },
                    "SMTP_PORT": {
                      "description": "**Most likely 465** - The SSL port used for sending emails via SMTP ",
                      "defaultValue": "{{SMTP_PORT}}"
                    },
                    "AUTH_SECRET": {
                      "description": "A random secret key used for signing auth tokens",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "description": "The full connection string to postgres using .NET format",
                      "defaultValue": "${{Postgres.DATABASE_PRIVATE_URL_DSN}}"
                    },
                    "SMTP_PASSWORD": {
                      "description": "The password for the SMTP server",
                      "defaultValue": "{{SMTP_PASSWORD}}"
                    },
                    "SMTP_USERNAME": {
                      "description": "The username for the SMTP server",
                      "defaultValue": "{{SMTP_USERNAME}}"
                    },
                    "CLICKHOUSE_URL": {
                      "description": "The full connection string to ClickHouse using .NET format",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_URL}}"
                    },
                    "SMTP_FROM_ADDRESS": {
                      "description": "Address to send the email from",
                      "defaultValue": "${{SMTP_USERNAME}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Aptabase",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0"
}
