{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a0cd96b5-0e1d-4217-82a8-141b0430503c",
    "slug": "notifuse-email-marketing",
    "name": "Notifuse Email Marketing",
    "description": "Email campaigns with PostgreSQL and a protected first-run setup.",
    "url": "https://railway.com/deploy/notifuse-email-marketing",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17-alpine@sha256:18cfe3ef5e6815560c98237d6216d1e5119702fb0f3894c8785dd58b8bbe5d73"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "notifuse",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "core",
      "source": {
        "image": "notifuse/notifuse:v40.0@sha256:ffc9058741be942401281da44a17f5c00befca887b46f7e5fc43b6f1cc444c69"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGPORT",
      "service": "postgres",
      "description": "Pgport for postgres. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
      "secret": false,
      "strategy": "default",
      "default": "notifuse"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
      "secret": false,
      "strategy": "default",
      "default": "notifuse"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "notifuse",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "notifuse",
      "description": "Owner auth for notifuse. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "notifuse",
      "description": "Owner scope for notifuse. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "setup"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "notifuse",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "notifuse",
      "description": "Upstream port for notifuse. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "notifuse",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "notifuse",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round6-gateway/Dockerfile"
    },
    {
      "key": "DB_HOST",
      "service": "core",
      "description": "Db host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_NAME",
      "service": "core",
      "description": "Db name for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "notifuse_system"
    },
    {
      "key": "DB_PORT",
      "service": "core",
      "description": "Db port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_USER",
      "service": "core",
      "description": "Db user for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "notifuse"
    },
    {
      "key": "DB_PREFIX",
      "service": "core",
      "description": "Db prefix for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "notifuse"
    },
    {
      "key": "DB_SSLMODE",
      "service": "core",
      "description": "Db sslmode for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "disable"
    },
    {
      "key": "ROOT_EMAIL",
      "service": "core",
      "description": "Required operator email. Complete the protected initial setup with this address.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SECRET_KEY",
      "service": "core",
      "description": "Generated secret key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_PASSWORD",
      "service": "core",
      "description": "Db password resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENVIRONMENT",
      "service": "core",
      "description": "Environment for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "SERVER_HOST",
      "service": "core",
      "description": "Server host for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "SERVER_PORT",
      "service": "core",
      "description": "Server port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "API_ENDPOINT",
      "service": "core",
      "description": "Api endpoint resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_BRIDGE_ENABLED",
      "service": "core",
      "description": "Smtp bridge enabled for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "notifuse-email-marketing"
      }
    },
    "cli": "railway deploy --template notifuse-email-marketing",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a0cd96b5-0e1d-4217-82a8-141b0430503c",
            "serializedConfig": {
              "services": {
                "2ea46571-d181-5e93-8bfb-8e09956175f0": {
                  "name": "postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17-alpine@sha256:18cfe3ef5e6815560c98237d6216d1e5119702fb0f3894c8785dd58b8bbe5d73"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Pgport for postgres. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
                      "defaultValue": "notifuse"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
                      "defaultValue": "postgresql://notifuse:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/notifuse"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
                      "defaultValue": "notifuse"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "fce22db3-b075-5a94-ba1f-d1525bbeaff1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "7e814c1b-d4b5-5c49-a9c4-1adaa16f96d5": {
                  "name": "notifuse",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round6-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/fifteen-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Owner auth for notifuse. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Owner scope for notifuse. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "setup"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for notifuse. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "8080"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round6-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "89e010d9-fa6b-5ce3-8c9d-c755fe547064": {
                  "name": "core",
                  "deploy": {
                    "requiredMountPath": "/app/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "notifuse/notifuse:v40.0@sha256:ffc9058741be942401281da44a17f5c00befca887b46f7e5fc43b6f1cc444c69"
                  },
                  "variables": {
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Db host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Db name for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "notifuse_system"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Db port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "5432"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Db user for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "notifuse"
                    },
                    "DB_PREFIX": {
                      "isOptional": false,
                      "description": "Db prefix for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "notifuse"
                    },
                    "SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP server for login/setup email."
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port, usually 587."
                    },
                    "DB_SSLMODE": {
                      "isOptional": false,
                      "description": "Db sslmode for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "disable"
                    },
                    "ROOT_EMAIL": {
                      "isOptional": false,
                      "description": "Required operator email. Complete the protected initial setup with this address.",
                      "defaultValue": "{{ROOT_EMAIL}}"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generated secret key. Keep private and preserve with backups.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Db password resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "ENVIRONMENT": {
                      "isOptional": false,
                      "description": "Environment for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "production"
                    },
                    "SERVER_HOST": {
                      "isOptional": false,
                      "description": "Server host for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "0.0.0.0"
                    },
                    "SERVER_PORT": {
                      "isOptional": false,
                      "description": "Server port for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "8080"
                    },
                    "API_ENDPOINT": {
                      "isOptional": false,
                      "description": "Api endpoint resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{notifuse.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password."
                    },
                    "SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username."
                    },
                    "SMTP_FROM_EMAIL": {
                      "isOptional": true,
                      "description": "Verified sender address."
                    },
                    "SMTP_BRIDGE_ENABLED": {
                      "isOptional": false,
                      "description": "Smtp bridge enabled for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "NOTIFUSE_LICENSE_KEY": {
                      "isOptional": true,
                      "description": "Optional paid upstream license; no license is included."
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "b8bdcf68-4112-5e15-97a4-6ff3af885a9d": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "notifuse",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T22:14:35.692Z",
  "generator_version": "0.1.0"
}
