{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9913c4a8-e269-4839-b6f2-ed9cc92dff7b",
    "slug": "listmonk-mailchimp-alternative",
    "name": "Listmonk — Open Source Mailchimp Alternative on Railway",
    "description": "Launch a Self-Hosted Newsletter with Listmonk on Railway",
    "url": "https://railway.com/deploy/listmonk-mailchimp-alternative",
    "upstream": {
      "image": "listmonk/listmonk:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Listmonk",
      "source": {
        "image": "listmonk/listmonk:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/listmonk/uploads",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "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"
    },
    {
      "key": "PORT",
      "service": "Listmonk",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "LISTMONK_db__host",
      "service": "Listmonk",
      "description": "Postgres database host reference",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__port",
      "service": "Listmonk",
      "description": "Postgres database server port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "LISTMONK_db__user",
      "service": "Listmonk",
      "description": "Postgres database username reference",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_ADMIN_USER",
      "service": "Listmonk",
      "description": "Admin dashboard login username",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "LISTMONK_app__address",
      "service": "Listmonk",
      "description": "Application bind address and port",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:9000"
    },
    {
      "key": "LISTMONK_db__database",
      "service": "Listmonk",
      "description": "Postgres database name reference",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__max_idle",
      "service": "Listmonk",
      "description": "Maximum idle database connections",
      "secret": false,
      "strategy": "default",
      "default": "25"
    },
    {
      "key": "LISTMONK_db__max_open",
      "service": "Listmonk",
      "description": "Maximum open database connections",
      "secret": false,
      "strategy": "default",
      "default": "25"
    },
    {
      "key": "LISTMONK_db__password",
      "service": "Listmonk",
      "description": "Postgres database password reference",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__ssl_mode",
      "service": "Listmonk",
      "description": "Enable SSL for database connections",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "LISTMONK_ADMIN_PASSWORD",
      "service": "Listmonk",
      "description": "Admin dashboard login password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LISTMONK_db__max_lifetime",
      "service": "Listmonk",
      "description": "Maximum connection lifetime duration",
      "secret": false,
      "strategy": "default",
      "default": "300s"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "listmonk-mailchimp-alternative"
      }
    },
    "cli": "railway deploy --template listmonk-mailchimp-alternative",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9913c4a8-e269-4839-b6f2-ed9cc92dff7b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "15d54988-a869-479d-980c-8f8594b2b49b": {
                  "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": {
                    "15d54988-a869-479d-980c-8f8594b2b49b": {
                      "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."
                  }
                },
                "b0e5f010-e923-419c-924a-64520f6ca87e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/listmonk.svg",
                  "name": "Listmonk",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"./listmonk --install --idempotent --yes --config '' && ./listmonk --upgrade --yes --config '' && ./listmonk --config ''\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "listmonk/listmonk:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "9000"
                    },
                    "LISTMONK_db__host": {
                      "isOptional": false,
                      "description": "Postgres database host reference",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "LISTMONK_db__port": {
                      "isOptional": false,
                      "description": "Postgres database server port",
                      "defaultValue": "5432"
                    },
                    "LISTMONK_db__user": {
                      "isOptional": false,
                      "description": "Postgres database username reference",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "LISTMONK_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Admin dashboard login username",
                      "defaultValue": "{{LISTMONK_ADMIN_USER}}"
                    },
                    "LISTMONK_app__address": {
                      "isOptional": false,
                      "description": "Application bind address and port",
                      "defaultValue": "0.0.0.0:9000"
                    },
                    "LISTMONK_db__database": {
                      "isOptional": false,
                      "description": "Postgres database name reference",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "LISTMONK_db__max_idle": {
                      "isOptional": false,
                      "description": "Maximum idle database connections",
                      "defaultValue": "25"
                    },
                    "LISTMONK_db__max_open": {
                      "isOptional": false,
                      "description": "Maximum open database connections",
                      "defaultValue": "25"
                    },
                    "LISTMONK_db__password": {
                      "isOptional": false,
                      "description": "Postgres database password reference",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "LISTMONK_db__ssl_mode": {
                      "isOptional": false,
                      "description": "Enable SSL for database connections",
                      "defaultValue": "require"
                    },
                    "LISTMONK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin dashboard login password",
                      "defaultValue": "{{LISTMONK_ADMIN_PASSWORD}}"
                    },
                    "LISTMONK_db__max_lifetime": {
                      "isOptional": false,
                      "description": "Maximum connection lifetime duration",
                      "defaultValue": "300s"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b0e5f010-e923-419c-924a-64520f6ca87e": {
                      "mountPath": "/listmonk/uploads"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0"
}
