{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c8152901-8ec1-4882-95f8-c5ed3673504d",
    "slug": "deploy-penpot-api-with-webhooks",
    "name": "Penpot API Tokens",
    "description": "Access tokens, RPC API and webhooks on your Penpot",
    "url": "https://railway.com/deploy/deploy-penpot-api-with-webhooks",
    "upstream": {
      "image": "penpotapp/frontend:2.18.3@sha256:bb8abe27d53de84c95597f2c02c0e702b2779971fb0703e543f9ecf183e999f6"
    }
  },
  "services": [
    {
      "name": "penpot-frontend",
      "source": {
        "image": "penpotapp/frontend:2.18.3@sha256:bb8abe27d53de84c95597f2c02c0e702b2779971fb0703e543f9ecf183e999f6"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Valkey",
      "source": {
        "image": "valkey/valkey:8.1.10@sha256:640c5e62cea04b6d6f2084232651d0cc70362d31f4f805e7be94dbed6855e8f2"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "penpot-exporter",
      "source": {
        "image": "penpotapp/exporter:2.18.3@sha256:418232d6ca3120b1c2bfde298a56a05a1f41f567cd8494deac3fe7fbc186cfbd"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "penpot-backend",
      "source": {
        "image": "penpotapp/backend:2.18.3@sha256:2df1b3440d2a82cc3571db211b4ffdfa2b89ccc910759e8d5e9387fb62971b5c"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/data/assets",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18.6@sha256:fcc6686a3f4f1962fe4ed77a15884553b7bd611ae1cea3204687968c5c09d517"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "penpot-frontend",
      "description": "Port nginx listens on; the public domain routes here.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PENPOT_FLAGS",
      "service": "penpot-frontend",
      "description": "Feature flags, referenced from penpot-backend (edit them there).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_PUBLIC_URI",
      "service": "penpot-frontend",
      "description": "Public HTTPS URL of Penpot; backend and exporter reference it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PENPOT_BACKEND_URI",
      "service": "penpot-frontend",
      "description": "nginx upstream name for the backend; leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "http://penpot-backend"
    },
    {
      "key": "PENPOT_BACKEND_HOST",
      "service": "penpot-frontend",
      "description": "Backend private hostname, re-resolved by nginx at runtime.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_EXPORTER_URI",
      "service": "penpot-frontend",
      "description": "nginx upstream name for the exporter; leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "http://penpot-exporter"
    },
    {
      "key": "PENPOT_EXPORTER_HOST",
      "service": "penpot-frontend",
      "description": "Exporter private hostname, re-resolved by nginx at runtime.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_HTTP_SERVER_MAX_BODY_SIZE",
      "service": "penpot-frontend",
      "description": "Max upload size in bytes for nginx (350 MiB).",
      "secret": false,
      "strategy": "default",
      "default": "367001600"
    },
    {
      "key": "REDISHOST",
      "service": "Valkey",
      "description": "Valkey private hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Valkey",
      "description": "Valkey port (6379).",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Valkey",
      "description": "Valkey user (default).",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Valkey",
      "description": "Full Valkey connection URL for other services.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "VALKEY_PASSWORD",
      "service": "Valkey",
      "description": "Generated Valkey password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "VALKEY_EXTRA_FLAGS",
      "service": "Valkey",
      "description": "Server flags: password and 128 MB memory cap, as upstream.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "penpot-exporter",
      "description": "Port used by the /readyz healthcheck (6061).",
      "secret": false,
      "strategy": "default",
      "default": "6061"
    },
    {
      "key": "PENPOT_FLAGS",
      "service": "penpot-exporter",
      "description": "Feature flags, referenced from penpot-backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_REDIS_URI",
      "service": "penpot-exporter",
      "description": "Valkey URI, referenced from penpot-backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_PUBLIC_URI",
      "service": "penpot-exporter",
      "description": "Public URL used in export download links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_SECRET_KEY",
      "service": "penpot-exporter",
      "description": "Shared master key, referenced from penpot-backend.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_INTERNAL_URI",
      "service": "penpot-exporter",
      "description": "Private URL of the web app the headless browser renders.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_HTTP_SERVER_PORT",
      "service": "penpot-exporter",
      "description": "Exporter HTTP port (6061).",
      "secret": false,
      "strategy": "default",
      "default": "6061"
    },
    {
      "key": "PORT",
      "service": "penpot-backend",
      "description": "Port used by the /readyz healthcheck (6060).",
      "secret": false,
      "strategy": "default",
      "default": "6060"
    },
    {
      "key": "JAVA_OPTS",
      "service": "penpot-backend",
      "description": "JVM heap limits; raise -Xmx for very large files.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms256m -Xmx1g"
    },
    {
      "key": "PENPOT_FLAGS",
      "service": "penpot-backend",
      "description": "Feature flags: open sign-up, password login, no email verification.",
      "secret": false,
      "strategy": "default",
      "default": "enable-registration enable-login-with-password disable-email-verification enable-prepl-server"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "penpot-backend",
      "description": "Run as root so the root-owned volume is writable.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PENPOT_REDIS_URI",
      "service": "penpot-backend",
      "description": "Valkey URI with password for real-time notifications.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_PUBLIC_URI",
      "service": "penpot-backend",
      "description": "Public URL, referenced from penpot-frontend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_SECRET_KEY",
      "service": "penpot-backend",
      "description": "Master key for sessions and invitations; generated, keep stable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PENPOT_DATABASE_URI",
      "service": "penpot-backend",
      "description": "JDBC-style Postgres URI on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_HTTP_SERVER_HOST",
      "service": "penpot-backend",
      "description": "Bind address; :: listens on IPv6 and IPv4 privately.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PENPOT_HTTP_SERVER_PORT",
      "service": "penpot-backend",
      "description": "Backend API port (6060).",
      "secret": false,
      "strategy": "default",
      "default": "6060"
    },
    {
      "key": "PENPOT_DATABASE_PASSWORD",
      "service": "penpot-backend",
      "description": "Postgres password, referenced from the Postgres service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_DATABASE_USERNAME",
      "service": "penpot-backend",
      "description": "Postgres user, referenced from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_OBJECTS_STORAGE_BACKEND",
      "service": "penpot-backend",
      "description": "Asset storage backend; fs keeps files on the volume.",
      "secret": false,
      "strategy": "default",
      "default": "fs"
    },
    {
      "key": "PENPOT_HTTP_SERVER_MAX_BODY_SIZE",
      "service": "penpot-backend",
      "description": "Max request body size in bytes (350 MiB).",
      "secret": false,
      "strategy": "default",
      "default": "367001600"
    },
    {
      "key": "PENPOT_OBJECTS_STORAGE_FS_DIRECTORY",
      "service": "penpot-backend",
      "description": "Volume path for uploads, fonts, thumbnails, exports.",
      "secret": false,
      "strategy": "default",
      "default": "/opt/data/assets"
    },
    {
      "key": "PENPOT_HTTP_SERVER_MAX_MULTIPART_BODY_SIZE",
      "service": "penpot-backend",
      "description": "Max multipart upload size in bytes (legacy alias).",
      "secret": false,
      "strategy": "default",
      "default": "367001600"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory inside the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname of Postgres.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Postgres port (5432).",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "User for the Railway Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database for the Railway Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password for the Railway Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database Penpot uses.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Full private connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database superuser name.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Self-signed SSL certificate lifetime in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Postgres gets to shut down cleanly.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-penpot-api-with-webhooks"
      }
    },
    "cli": "railway deploy --template deploy-penpot-api-with-webhooks",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c8152901-8ec1-4882-95f8-c5ed3673504d",
            "serializedConfig": {
              "services": {
                "0b769828-5f4a-4b2b-bcef-dca89b1a77fc": {
                  "icon": null,
                  "name": "penpot-frontend",
                  "deploy": {
                    "startCommand": "/bin/bash -c 'printf \"upstream penpot-backend { zone penpot_backend 64k; server %s:6060 resolve; }\\nupstream penpot-exporter { zone penpot_exporter 64k; server %s:6061 resolve; }\\nupstream penpot-assets { zone penpot_assets 64k; server %s:6070 resolve; }\\n\" \"$PENPOT_BACKEND_HOST\" \"$PENPOT_EXPORTER_HOST\" \"$PENPOT_BACKEND_HOST\" > /etc/nginx/overrides/http.d/railway-upstreams.conf && printf \"location ~ ^/internal/assets/(.*)\\$ { internal; proxy_pass http://penpot-assets/\\$1; proxy_hide_header Content-Type; include /etc/nginx/nginx-security-headers.conf; }\\n\" > /etc/nginx/overrides/server.d/railway-assets.conf && exec /bin/bash /entrypoint.sh nginx -g \"daemon off;\"'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "penpotapp/frontend:2.18.3@sha256:bb8abe27d53de84c95597f2c02c0e702b2779971fb0703e543f9ecf183e999f6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port nginx listens on; the public domain routes here.",
                      "defaultValue": "8080"
                    },
                    "PENPOT_FLAGS": {
                      "isOptional": false,
                      "description": "Feature flags, referenced from penpot-backend (edit them there).",
                      "defaultValue": "${{penpot-backend.PENPOT_FLAGS}}"
                    },
                    "PENPOT_PUBLIC_URI": {
                      "isOptional": false,
                      "description": "Public HTTPS URL of Penpot; backend and exporter reference it.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PENPOT_BACKEND_URI": {
                      "isOptional": false,
                      "description": "nginx upstream name for the backend; leave as is.",
                      "defaultValue": "http://penpot-backend"
                    },
                    "PENPOT_BACKEND_HOST": {
                      "isOptional": false,
                      "description": "Backend private hostname, re-resolved by nginx at runtime.",
                      "defaultValue": "${{penpot-backend.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PENPOT_EXPORTER_URI": {
                      "isOptional": false,
                      "description": "nginx upstream name for the exporter; leave as is.",
                      "defaultValue": "http://penpot-exporter"
                    },
                    "PENPOT_EXPORTER_HOST": {
                      "isOptional": false,
                      "description": "Exporter private hostname, re-resolved by nginx at runtime.",
                      "defaultValue": "${{penpot-exporter.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PENPOT_HTTP_SERVER_MAX_BODY_SIZE": {
                      "isOptional": false,
                      "description": "Max upload size in bytes for nginx (350 MiB).",
                      "defaultValue": "367001600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "4a547a89-5f63-4059-9535-38c45dbf619d": {
                  "icon": null,
                  "name": "Valkey",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "valkey/valkey:8.1.10@sha256:640c5e62cea04b6d6f2084232651d0cc70362d31f4f805e7be94dbed6855e8f2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Valkey private hostname.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Valkey port (6379).",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Valkey user (default).",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Full Valkey connection URL for other services.",
                      "defaultValue": "redis://default:${{VALKEY_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "VALKEY_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Valkey password.",
                      "defaultValue": "{{VALKEY_PASSWORD}}"
                    },
                    "VALKEY_EXTRA_FLAGS": {
                      "isOptional": false,
                      "description": "Server flags: password and 128 MB memory cap, as upstream.",
                      "defaultValue": "--requirepass ${{VALKEY_PASSWORD}} --maxmemory 128mb --maxmemory-policy volatile-lfu"
                    }
                  }
                },
                "8943933c-3a6d-40fc-906f-430793e03abb": {
                  "icon": null,
                  "name": "penpot-exporter",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "penpotapp/exporter:2.18.3@sha256:418232d6ca3120b1c2bfde298a56a05a1f41f567cd8494deac3fe7fbc186cfbd"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by the /readyz healthcheck (6061).",
                      "defaultValue": "6061"
                    },
                    "PENPOT_FLAGS": {
                      "isOptional": false,
                      "description": "Feature flags, referenced from penpot-backend.",
                      "defaultValue": "${{penpot-backend.PENPOT_FLAGS}}"
                    },
                    "PENPOT_REDIS_URI": {
                      "isOptional": false,
                      "description": "Valkey URI, referenced from penpot-backend.",
                      "defaultValue": "${{penpot-backend.PENPOT_REDIS_URI}}"
                    },
                    "PENPOT_PUBLIC_URI": {
                      "isOptional": false,
                      "description": "Public URL used in export download links.",
                      "defaultValue": "${{penpot-frontend.PENPOT_PUBLIC_URI}}"
                    },
                    "PENPOT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Shared master key, referenced from penpot-backend.",
                      "defaultValue": "${{penpot-backend.PENPOT_SECRET_KEY}}"
                    },
                    "PENPOT_INTERNAL_URI": {
                      "isOptional": false,
                      "description": "Private URL of the web app the headless browser renders.",
                      "defaultValue": "http://${{penpot-frontend.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "PENPOT_HTTP_SERVER_PORT": {
                      "isOptional": false,
                      "description": "Exporter HTTP port (6061).",
                      "defaultValue": "6061"
                    }
                  }
                },
                "c3031b99-a8fc-4309-84b2-f34557320460": {
                  "icon": null,
                  "name": "penpot-backend",
                  "deploy": {
                    "startCommand": "/bin/bash -c 'python3 -m http.server 6070 --bind :: --directory /opt/data/assets >/dev/null 2>&1 & exec /bin/bash run.sh'",
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "penpotapp/backend:2.18.3@sha256:2df1b3440d2a82cc3571db211b4ffdfa2b89ccc910759e8d5e9387fb62971b5c"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by the /readyz healthcheck (6060).",
                      "defaultValue": "6060"
                    },
                    "JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap limits; raise -Xmx for very large files.",
                      "defaultValue": "-Xms256m -Xmx1g"
                    },
                    "PENPOT_FLAGS": {
                      "isOptional": false,
                      "description": "Feature flags: open sign-up, password login, no email verification.",
                      "defaultValue": "enable-registration enable-login-with-password disable-email-verification enable-prepl-server"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so the root-owned volume is writable.",
                      "defaultValue": "0"
                    },
                    "PENPOT_REDIS_URI": {
                      "isOptional": false,
                      "description": "Valkey URI with password for real-time notifications.",
                      "defaultValue": "redis://default:${{Valkey.VALKEY_PASSWORD}}@${{Valkey.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    },
                    "PENPOT_PUBLIC_URI": {
                      "isOptional": false,
                      "description": "Public URL, referenced from penpot-frontend.",
                      "defaultValue": "${{penpot-frontend.PENPOT_PUBLIC_URI}}"
                    },
                    "PENPOT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Master key for sessions and invitations; generated, keep stable.",
                      "defaultValue": "{{PENPOT_SECRET_KEY}}"
                    },
                    "PENPOT_DATABASE_URI": {
                      "isOptional": false,
                      "description": "JDBC-style Postgres URI on the private network.",
                      "defaultValue": "postgresql://${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.PGDATABASE}}"
                    },
                    "PENPOT_HTTP_SERVER_HOST": {
                      "isOptional": false,
                      "description": "Bind address; :: listens on IPv6 and IPv4 privately.",
                      "defaultValue": "::"
                    },
                    "PENPOT_HTTP_SERVER_PORT": {
                      "isOptional": false,
                      "description": "Backend API port (6060).",
                      "defaultValue": "6060"
                    },
                    "PENPOT_DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password, referenced from the Postgres service.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "PENPOT_DATABASE_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres user, referenced from the Postgres service.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "PENPOT_OBJECTS_STORAGE_BACKEND": {
                      "isOptional": false,
                      "description": "Asset storage backend; fs keeps files on the volume.",
                      "defaultValue": "fs"
                    },
                    "PENPOT_HTTP_SERVER_MAX_BODY_SIZE": {
                      "isOptional": false,
                      "description": "Max request body size in bytes (350 MiB).",
                      "defaultValue": "367001600"
                    },
                    "PENPOT_OBJECTS_STORAGE_FS_DIRECTORY": {
                      "isOptional": false,
                      "description": "Volume path for uploads, fonts, thumbnails, exports.",
                      "defaultValue": "/opt/data/assets"
                    },
                    "PENPOT_HTTP_SERVER_MAX_MULTIPART_BODY_SIZE": {
                      "isOptional": false,
                      "description": "Max multipart upload size in bytes (legacy alias).",
                      "defaultValue": "367001600"
                    }
                  },
                  "volumeMounts": {
                    "c3031b99-a8fc-4309-84b2-f34557320460": {
                      "mountPath": "/opt/data/assets"
                    }
                  }
                },
                "fcf01b30-952e-4a03-8afe-ab2ff6955f89": {
                  "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.6@sha256:fcc6686a3f4f1962fe4ed77a15884553b7bd611ae1cea3204687968c5c09d517"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname of Postgres.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port (5432).",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "User for the Railway Data panel.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database for the Railway Data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the Railway Data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database Penpot uses.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Full private connection URL.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database superuser name.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Self-signed SSL certificate lifetime in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Postgres gets to shut down cleanly.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "fcf01b30-952e-4a03-8afe-ab2ff6955f89": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "penpot-frontend",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-10-21T10:14:45.258Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-21T07:04:43.652Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2f7df89101fd44589842",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 78,
    "typical_build_seconds": 0,
    "typical_start_seconds": 24,
    "slowest_service": "penpot-backend"
  }
}
