{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f85b7b07-6ef8-4a3a-a023-b250dfbdebbd",
    "slug": "listmonk-newsletters",
    "name": "Listmonk",
    "description": "Newsletters and mailing lists on Postgres 17, admin created on first boot",
    "url": "https://railway.com/deploy/listmonk-newsletters",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/listmonk"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:17.11-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "listmonk",
      "source": {
        "repo": "https://github.com/two-workspaces/listmonk"
      },
      "needs_volume": true,
      "volume_mount_path": "/listmonk/uploads",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "listmonk"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "listmonk"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "TZ",
      "service": "listmonk",
      "description": "Time zone for logs and scheduled campaigns",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "listmonk",
      "description": "HTTP port listmonk listens on - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "LISTMONK_db__host",
      "service": "listmonk",
      "description": "Postgres host (private network)",
      "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": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_ADMIN_USER",
      "service": "listmonk",
      "description": "Super admin username, created on the first boot only.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LISTMONK_app__address",
      "service": "listmonk",
      "description": "Listen address (all interfaces, port 9000) - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": ":9000"
    },
    {
      "key": "LISTMONK_db__database",
      "service": "listmonk",
      "description": "Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__password",
      "service": "listmonk",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__ssl_mode",
      "service": "listmonk",
      "description": "Private network, no TLS needed",
      "secret": false,
      "strategy": "default",
      "default": "disable"
    },
    {
      "key": "LISTMONK_ADMIN_PASSWORD",
      "service": "listmonk",
      "description": "Super admin password, generated at deploy time and used on the first boot only. Change it in listmonk afterwards (Users).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "listmonk-newsletters"
      }
    },
    "cli": "railway deploy --template listmonk-newsletters",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f85b7b07-6ef8-4a3a-a023-b250dfbdebbd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9af32e90-96c7-4e29-9a04-f0740cd5ed32": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.11-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "listmonk"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "listmonk"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "fde379bd-3e59-4bb5-a5dd-9f7c31a1d68a": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d7483c24-7b65-4555-b898-43cc73ac0283": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/listmonk/main/icon.svg",
                  "name": "listmonk",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/listmonk",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone for logs and scheduled campaigns",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port listmonk listens on - leave as is.",
                      "defaultValue": "9000"
                    },
                    "LISTMONK_db__host": {
                      "isOptional": false,
                      "description": "Postgres host (private network)",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "LISTMONK_db__port": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "LISTMONK_db__user": {
                      "isOptional": false,
                      "description": "Postgres user",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "LISTMONK_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Super admin username, created on the first boot only.",
                      "defaultValue": "admin"
                    },
                    "LISTMONK_app__address": {
                      "isOptional": false,
                      "description": "Listen address (all interfaces, port 9000) - leave as is.",
                      "defaultValue": ":9000"
                    },
                    "LISTMONK_db__database": {
                      "isOptional": false,
                      "description": "Postgres database",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "LISTMONK_db__password": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "LISTMONK_db__ssl_mode": {
                      "isOptional": false,
                      "description": "Private network, no TLS needed",
                      "defaultValue": "disable"
                    },
                    "LISTMONK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Super admin password, generated at deploy time and used on the first boot only. Change it in listmonk afterwards (Users).",
                      "defaultValue": "{{LISTMONK_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "7edcbb0d-5937-4716-a48c-447854eab936": {
                      "mountPath": "/listmonk/uploads"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "listmonk",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-28T16:14:58.566Z",
  "generator_version": "0.1.0"
}
