{
  "manifest_version": "1.0.0",
  "template": {
    "id": "81980871-36b2-4a43-8c53-4043147a5c7a",
    "slug": "listmonk",
    "name": "Listmonk",
    "description": "Self-hosted newsletter and mailing list manager",
    "url": "https://railway.com/deploy/listmonk",
    "upstream": {
      "repo_url": "https://github.com/railwayapp-templates/listmonk"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:13-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "listmonk",
      "source": {
        "repo": "https://github.com/railwayapp-templates/listmonk"
      },
      "needs_volume": true,
      "volume_mount_path": "/listmonk/uploads",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Public host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Public port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "Postgres",
      "description": "Private host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "Postgres",
      "description": "Private port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "Private database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_ORIGIN_0",
      "service": "listmonk",
      "description": "Example CORS value",
      "secret": false,
      "strategy": "default",
      "default": "https://domain.com"
    },
    {
      "key": "LISTMONK_ORIGIN_1",
      "service": "listmonk",
      "description": "Example CORS value",
      "secret": false,
      "strategy": "default",
      "default": "https://www.domain.com"
    },
    {
      "key": "LISTMONK_db__host",
      "service": "listmonk",
      "description": "Private host of the Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__port",
      "service": "listmonk",
      "description": "Private port of the Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__user",
      "service": "listmonk",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__database",
      "service": "listmonk",
      "description": "Database database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__password",
      "service": "listmonk",
      "description": "Database Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LISTMONK_db__ssl_mode",
      "service": "listmonk",
      "description": "Disable ssl, ssl is not needed since communication to the database is done over the private network",
      "secret": false,
      "strategy": "default",
      "default": "disable"
    },
    {
      "key": "LISTMONK_app__admin_password",
      "service": "listmonk",
      "description": "Basicauth password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LISTMONK_app__admin_username",
      "service": "listmonk",
      "description": "Basicauth username",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "listmonk",
      "description": "<a href=\"https://docs.railway.app/reference/private-networking#workaround-for-alpine-based-images\">Workaround for Alpine-based images</a>",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "listmonk"
      }
    },
    "cli": "railway deploy --template listmonk",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "81980871-36b2-4a43-8c53-4043147a5c7a",
            "serializedConfig": {
              "services": {
                "1b41b9a1-0d11-47ae-9c04-c968e96a4bef": {
                  "icon": "https://devicons.railway.app/PostgreSQL?variant=light",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"unset PGPORT; exec docker-entrypoint.sh postgres --port=${PGPORT_PRIVATE}\""
                  },
                  "source": {
                    "image": "postgres:13-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Public host",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Public port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database",
                      "defaultValue": "postgres://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST}}:${{PGPORT}}/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "railway"
                    },
                    "PGHOST_PRIVATE": {
                      "isOptional": false,
                      "description": "Private host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT_PRIVATE": {
                      "isOptional": false,
                      "description": "Private port",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private database URL",
                      "defaultValue": "postgres://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST_PRIVATE}}:${{PGPORT_PRIVATE}}/${{POSTGRES_DB}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "1b41b9a1-0d11-47ae-9c04-c968e96a4bef": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "6a0c6ee0-fed1-4fcd-852e-a8874fda35be": {
                  "icon": "https://devicons.railway.app/Listmonk?variant=light",
                  "name": "listmonk",
                  "build": {},
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/listmonk",
                    "rootDirectory": null
                  },
                  "variables": {
                    "LISTMONK_ORIGIN_0": {
                      "isOptional": false,
                      "description": "Example CORS value",
                      "defaultValue": "https://domain.com"
                    },
                    "LISTMONK_ORIGIN_1": {
                      "isOptional": false,
                      "description": "Example CORS value",
                      "defaultValue": "https://www.domain.com"
                    },
                    "LISTMONK_db__host": {
                      "isOptional": false,
                      "description": "Private host of the Postgres database",
                      "defaultValue": "${{Postgres.PGHOST_PRIVATE}}"
                    },
                    "LISTMONK_db__port": {
                      "isOptional": false,
                      "description": "Private port of the Postgres database",
                      "defaultValue": "${{Postgres.PGPORT_PRIVATE}}"
                    },
                    "LISTMONK_db__user": {
                      "isOptional": false,
                      "description": "Database username",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "LISTMONK_db__database": {
                      "isOptional": false,
                      "description": "Database database",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "LISTMONK_db__password": {
                      "isOptional": false,
                      "description": "Database Password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "LISTMONK_db__ssl_mode": {
                      "isOptional": false,
                      "description": "Disable ssl, ssl is not needed since communication to the database is done over the private network",
                      "defaultValue": "disable"
                    },
                    "LISTMONK_app__admin_password": {
                      "isOptional": false,
                      "description": "Basicauth password",
                      "defaultValue": "{{LISTMONK_app__admin_password}}"
                    },
                    "LISTMONK_app__admin_username": {
                      "isOptional": false,
                      "description": "Basicauth username",
                      "defaultValue": "{{LISTMONK_app__admin_username}}"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "<a href=\"https://docs.railway.app/reference/private-networking#workaround-for-alpine-based-images\">Workaround for Alpine-based images</a>",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "6a0c6ee0-fed1-4fcd-852e-a8874fda35be": {
                      "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-09-07T23:54:17.958Z",
  "generator_version": "0.1.0"
}
