{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fb1fdb3c-561c-4438-b5b0-db8b38a431e5",
    "slug": "listmonk-railway",
    "name": "Listmonk",
    "description": "Mailchimp alternative. Self-hosted newsletter and mailing list manager",
    "url": "https://railway.com/deploy/listmonk-railway",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/listmonk-railway"
    }
  },
  "services": [
    {
      "name": "listmonk",
      "source": {
        "repo": "https://github.com/gridalpha/listmonk-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/listmonk/uploads",
      "http": true
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit: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": "TZ",
      "service": "listmonk",
      "description": "Container timezone",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "listmonk",
      "description": "HTTP listen port, health checked",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "LISTMONK_SMTP_TLS",
      "service": "listmonk",
      "description": "Relay TLS mode",
      "secret": false,
      "strategy": "default",
      "default": "none"
    },
    {
      "key": "LISTMONK_db__host",
      "service": "listmonk",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LISTMONK_db__port",
      "service": "listmonk",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "LISTMONK_db__user",
      "service": "listmonk",
      "description": "Scoped role created at boot",
      "secret": false,
      "strategy": "default",
      "default": "listmonk"
    },
    {
      "key": "LISTMONK_SMTP_AUTH",
      "service": "listmonk",
      "description": "Relay auth protocol",
      "secret": false,
      "strategy": "default",
      "default": "none"
    },
    {
      "key": "LISTMONK_SMTP_HOST",
      "service": "listmonk",
      "description": "Relay host seeded into settings",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LISTMONK_SMTP_PORT",
      "service": "listmonk",
      "description": "Relay port seeded into settings",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "LISTMONK_ADMIN_USER",
      "service": "listmonk",
      "description": "Super admin username, min 3 chars",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LISTMONK_FROM_EMAIL",
      "service": "listmonk",
      "description": "Default campaign sender",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LISTMONK_db__database",
      "service": "listmonk",
      "description": "Application database name",
      "secret": false,
      "strategy": "default",
      "default": "listmonk"
    },
    {
      "key": "LISTMONK_db__password",
      "service": "listmonk",
      "description": "Password for that scoped role",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LISTMONK_db__ssl_mode",
      "service": "listmonk",
      "description": "Encrypt the database connection",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "BOOTSTRAP_DATABASE_URL",
      "service": "listmonk",
      "description": "Superuser URL, used at boot only",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_ADMIN_PASSWORD",
      "service": "listmonk",
      "description": "Super admin password, min 8 chars",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LISTMONK_SMTP_MAX_CONNS",
      "service": "listmonk",
      "description": "Concurrent relay connections",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "TZ",
      "service": "mailpit",
      "description": "Container timezone",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox port, health checked",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth for the web inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages kept before pruning",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Web inbox bind address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "Private SMTP bind address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:1025"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "listmonk-railway"
      }
    },
    "cli": "railway deploy --template listmonk-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fb1fdb3c-561c-4438-b5b0-db8b38a431e5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "21a10f63-1134-4e3f-a278-79349f0befb6": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/listmonk.svg",
                  "name": "listmonk",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/listmonk-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port, health checked",
                      "defaultValue": "9000"
                    },
                    "LISTMONK_SMTP_TLS": {
                      "isOptional": false,
                      "description": "Relay TLS mode",
                      "defaultValue": "none"
                    },
                    "LISTMONK_db__host": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "LISTMONK_db__port": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "LISTMONK_db__user": {
                      "isOptional": false,
                      "description": "Scoped role created at boot",
                      "defaultValue": "listmonk"
                    },
                    "LISTMONK_SMTP_AUTH": {
                      "isOptional": false,
                      "description": "Relay auth protocol",
                      "defaultValue": "none"
                    },
                    "LISTMONK_SMTP_HOST": {
                      "isOptional": false,
                      "description": "Relay host seeded into settings",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "LISTMONK_SMTP_PORT": {
                      "isOptional": false,
                      "description": "Relay port seeded into settings",
                      "defaultValue": "1025"
                    },
                    "LISTMONK_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Super admin username, min 3 chars",
                      "defaultValue": "admin"
                    },
                    "LISTMONK_FROM_EMAIL": {
                      "isOptional": false,
                      "description": "Default campaign sender",
                      "defaultValue": "Mailing list <noreply@${{RAILWAY_PUBLIC_DOMAIN}}>"
                    },
                    "LISTMONK_db__database": {
                      "isOptional": false,
                      "description": "Application database name",
                      "defaultValue": "listmonk"
                    },
                    "LISTMONK_db__password": {
                      "isOptional": false,
                      "description": "Password for that scoped role",
                      "defaultValue": "{{LISTMONK_db__password}}"
                    },
                    "LISTMONK_db__ssl_mode": {
                      "isOptional": false,
                      "description": "Encrypt the database connection",
                      "defaultValue": "require"
                    },
                    "BOOTSTRAP_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Superuser URL, used at boot only",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "LISTMONK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Super admin password, min 8 chars",
                      "defaultValue": "{{LISTMONK_ADMIN_PASSWORD}}"
                    },
                    "LISTMONK_SMTP_MAX_CONNS": {
                      "isOptional": false,
                      "description": "Concurrent relay connections",
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      }
                    }
                  },
                  "volumeMounts": {
                    "21a10f63-1134-4e3f-a278-79349f0befb6": {
                      "mountPath": "/listmonk/uploads"
                    }
                  }
                },
                "5029ac9d-1fbc-4ff8-9813-e84d12be06fb": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox port, health checked",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the web inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages kept before pruning",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Web inbox bind address",
                      "defaultValue": "0.0.0.0:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Private SMTP bind address",
                      "defaultValue": "0.0.0.0:1025"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "5029ac9d-1fbc-4ff8-9813-e84d12be06fb": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ca105cb2-26f6-496b-b761-2e8390626a39": {
                  "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": {
                    "ca105cb2-26f6-496b-b761-2e8390626a39": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T16:56:44.912Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_462b17900ca146e9b984",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 63,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "listmonk"
  }
}
