{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cc8241d8-db03-444d-9c52-6021ea8ba36e",
    "slug": "listmonk-template",
    "name": "Listmonk (Zero-Config)",
    "description": "Self-hosted newsletter platform, zero-config - Mailchimp alternative",
    "url": "https://railway.com/deploy/listmonk-template",
    "upstream": {
      "image": "listmonk/listmonk:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "listmonk",
      "source": {
        "image": "listmonk/listmonk:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/listmonk/uploads",
      "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": "Timezone used for scheduling campaigns and displaying timestamps in the UI.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PORT",
      "service": "listmonk",
      "description": "Port the container listens on - set to 9000 to match Listmonk's internal HTTP server.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LISTMONK_db__host",
      "service": "listmonk",
      "description": "Postgres host - wired automatically to the bundled Postgres service over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__port",
      "service": "listmonk",
      "description": "Postgres port - wired automatically to the bundled Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__user",
      "service": "listmonk",
      "description": "Postgres username - wired automatically to the bundled Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_ADMIN_USER",
      "service": "listmonk",
      "description": "Username for the initial superadmin account, created on first boot.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LISTMONK_app__address",
      "service": "listmonk",
      "description": "Internal bind address for the Listmonk HTTP server. Must match PORT and the service's target port (9000).",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LISTMONK_db__database",
      "service": "listmonk",
      "description": "Postgres database name - wired automatically to the bundled Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__max_idle",
      "service": "listmonk",
      "description": "Maximum idle Postgres connections kept in the pool.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LISTMONK_db__max_open",
      "service": "listmonk",
      "description": "Maximum open Postgres connections in the pool.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LISTMONK_db__password",
      "service": "listmonk",
      "description": "Postgres password - wired automatically to the bundled Postgres service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__ssl_mode",
      "service": "listmonk",
      "description": "Postgres SSL mode. 'disable' is safe here since traffic stays on Railway's private network.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LISTMONK_app__root_url",
      "service": "listmonk",
      "description": "Public URL of this deployment, used in email links, password resets, and campaign tracking. Auto-wired to your Railway domain - no manual edit needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LISTMONK_ADMIN_PASSWORD",
      "service": "listmonk",
      "description": "Auto-generated password for the initial superadmin account. Find it here after deploying, then log in at /admin/login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LISTMONK_db__max_lifetime",
      "service": "listmonk",
      "description": "Maximum lifetime of a pooled Postgres connection before it's recycled.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Provide a value for PGHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Provide a value for PGPORT.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Provide a value for PGUSER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Provide a value for PGDATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Provide a value for PGPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Provide a value for SSL_CERT_DAYS.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "listmonk-template"
      }
    },
    "cli": "railway deploy --template listmonk-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cc8241d8-db03-444d-9c52-6021ea8ba36e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "45fd6fd1-e2d8-44f7-a053-fd216c233936": {
                  "icon": "https://devicons.railway.app/i/listmonk.svg",
                  "name": "listmonk",
                  "deploy": {
                    "startCommand": "sh -c \"yes | ./listmonk --install --idempotent --yes --config '' && ./listmonk --config ''\"",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "listmonk/listmonk:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone used for scheduling campaigns and displaying timestamps in the UI.",
                      "defaultValue": "{{TZ}}"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the container listens on - set to 9000 to match Listmonk's internal HTTP server.",
                      "defaultValue": "{{PORT}}"
                    },
                    "LISTMONK_db__host": {
                      "isOptional": false,
                      "description": "Postgres host - wired automatically to the bundled Postgres service over Railway's private network.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "LISTMONK_db__port": {
                      "isOptional": false,
                      "description": "Postgres port - wired automatically to the bundled Postgres service.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "LISTMONK_db__user": {
                      "isOptional": false,
                      "description": "Postgres username - wired automatically to the bundled Postgres service.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "LISTMONK_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Username for the initial superadmin account, created on first boot.",
                      "defaultValue": "{{LISTMONK_ADMIN_USER}}"
                    },
                    "LISTMONK_app__address": {
                      "isOptional": false,
                      "description": "Internal bind address for the Listmonk HTTP server. Must match PORT and the service's target port (9000).",
                      "defaultValue": "{{LISTMONK_app__address}}"
                    },
                    "LISTMONK_db__database": {
                      "isOptional": false,
                      "description": "Postgres database name - wired automatically to the bundled Postgres service.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "LISTMONK_db__max_idle": {
                      "isOptional": false,
                      "description": "Maximum idle Postgres connections kept in the pool.",
                      "defaultValue": "{{LISTMONK_db__max_idle}}"
                    },
                    "LISTMONK_db__max_open": {
                      "isOptional": false,
                      "description": "Maximum open Postgres connections in the pool.",
                      "defaultValue": "{{LISTMONK_db__max_open}}"
                    },
                    "LISTMONK_db__password": {
                      "isOptional": false,
                      "description": "Postgres password - wired automatically to the bundled Postgres service.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "LISTMONK_db__ssl_mode": {
                      "isOptional": false,
                      "description": "Postgres SSL mode. 'disable' is safe here since traffic stays on Railway's private network.",
                      "defaultValue": "{{LISTMONK_db__ssl_mode}}"
                    },
                    "LISTMONK_app__root_url": {
                      "isOptional": false,
                      "description": "Public URL of this deployment, used in email links, password resets, and campaign tracking. Auto-wired to your Railway domain - no manual edit needed.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LISTMONK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated password for the initial superadmin account. Find it here after deploying, then log in at /admin/login.",
                      "defaultValue": "{{LISTMONK_ADMIN_PASSWORD}}"
                    },
                    "LISTMONK_db__max_lifetime": {
                      "isOptional": false,
                      "description": "Maximum lifetime of a pooled Postgres connection before it's recycled.",
                      "defaultValue": "{{LISTMONK_db__max_lifetime}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      }
                    }
                  },
                  "volumeMounts": {
                    "45fd6fd1-e2d8-44f7-a053-fd216c233936": {
                      "mountPath": "/listmonk/uploads"
                    }
                  }
                },
                "a32015ab-ae88-4775-91c5-c1244b82e932": {
                  "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,
                      "defaultValue": "{{PGDATA}}"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "defaultValue": "{{PGPORT}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_DB}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "defaultValue": "{{SSL_CERT_DAYS}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "{{RAILWAY_DEPLOYMENT_DRAINING_SECONDS}}"
                    }
                  },
                  "volumeMounts": {
                    "a32015ab-ae88-4775-91c5-c1244b82e932": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "listmonk",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T10:14:32.962Z",
  "generator_version": "0.1.0"
}
