{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b98feae8-3570-46d7-b3b5-4a0642284469",
    "slug": "penpot-2-design-and-prototyping",
    "name": "Penpot 2 Design and Prototyping",
    "description": "Open-source Figma alternative for design and prototyping, fully yours.",
    "url": "https://railway.com/deploy/penpot-2-design-and-prototyping",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/penpot-railway"
    }
  },
  "services": [
    {
      "name": "S3 Gateway",
      "source": {
        "repo": "https://github.com/baranberkay96/penpot-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Valkey",
      "source": {
        "image": "valkey/valkey:8.1.10"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Backend",
      "source": {
        "image": "penpotapp/backend:2.18.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "MCP",
      "source": {
        "image": "penpotapp/mcp:2.18.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Exporter",
      "source": {
        "image": "penpotapp/exporter:2.18.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Frontend",
      "source": {
        "repo": "https://github.com/baranberkay96/penpot-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "S3 Gateway",
      "description": "Port of the S3 API on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "BUCKET_NAME",
      "service": "S3 Gateway",
      "description": "Railway Bucket name (S3 API name).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_REGION",
      "service": "S3 Gateway",
      "description": "Railway Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_ENDPOINT",
      "service": "S3 Gateway",
      "description": "Railway Bucket S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GATEWAY_BUCKETS",
      "service": "S3 Gateway",
      "description": "Space-separated logical buckets created as folders at start.",
      "secret": false,
      "strategy": "default",
      "default": "penpot"
    },
    {
      "key": "GATEWAY_LOG_LEVEL",
      "service": "S3 Gateway",
      "description": "rclone log level (ERROR, NOTICE, INFO, DEBUG).",
      "secret": false,
      "strategy": "default",
      "default": "NOTICE"
    },
    {
      "key": "GATEWAY_ACCESS_KEY",
      "service": "S3 Gateway",
      "description": "Access key Penpot signs with (generated).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GATEWAY_SECRET_KEY",
      "service": "S3 Gateway",
      "description": "Secret key Penpot signs with (generated).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BUCKET_ACCESS_KEY_ID",
      "service": "S3 Gateway",
      "description": "Railway Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_FORCE_PATH_STYLE",
      "service": "S3 Gateway",
      "description": "Railway Buckets use virtual-hosted URLs; set true only if the Bucket's Credentials tab says path-style.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BUCKET_SECRET_ACCESS_KEY",
      "service": "S3 Gateway",
      "description": "Railway Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "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 (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "VALKEY_URL",
      "service": "Valkey",
      "description": "Connection URL on the private network.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "VALKEY_PASSWORD",
      "service": "Valkey",
      "description": "Valkey password (generated).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Backend",
      "description": "Backend port (healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "6060"
    },
    {
      "key": "JVM_OPTS",
      "service": "Backend",
      "description": "JVM heap limits. Raise -Xmx for very large files.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms256m -Xmx2g"
    },
    {
      "key": "PENPOT_FLAGS",
      "service": "Backend",
      "description": "Feature flags shared by frontend, backend and exporter (registration, login, MCP...). Edit here only.",
      "secret": false,
      "strategy": "default",
      "default": "enable-registration enable-login-with-password disable-email-verification enable-prepl-server enable-mcp"
    },
    {
      "key": "PENPOT_REDIS_URI",
      "service": "Backend",
      "description": "Valkey (notifications, rate limits, exporter queue).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "Backend",
      "description": "Gateway access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_PUBLIC_URI",
      "service": "Backend",
      "description": "Public URL of Penpot. Change it here for a custom domain; the other services reference it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PENPOT_SECRET_KEY",
      "service": "Backend",
      "description": "Signs sessions and tokens; shared with the exporter. Never change after first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PENPOT_DATABASE_URI",
      "service": "Backend",
      "description": "Postgres JDBC-style URI (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "Backend",
      "description": "Gateway secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_HTTP_SERVER_HOST",
      "service": "Backend",
      "description": "Listen on IPv4 and IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PENPOT_HTTP_SERVER_PORT",
      "service": "Backend",
      "description": "Backend HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "6060"
    },
    {
      "key": "PENPOT_DATABASE_PASSWORD",
      "service": "Backend",
      "description": "Database password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_DATABASE_USERNAME",
      "service": "Backend",
      "description": "Database user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_TELEMETRY_ENABLED",
      "service": "Backend",
      "description": "Anonymous usage statistics to Penpot (set true to help the project).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PENPOT_OBJECTS_STORAGE_BACKEND",
      "service": "Backend",
      "description": "Store images, fonts and thumbnails in S3 (the Railway Bucket via S3 Gateway).",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "PENPOT_HTTP_SERVER_MAX_BODY_SIZE",
      "service": "Backend",
      "description": "Max request size (350 MiB, upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "367001600"
    },
    {
      "key": "PENPOT_OBJECTS_STORAGE_S3_BUCKET",
      "service": "Backend",
      "description": "Logical bucket = folder in the Railway Bucket; must be in the gateway's GATEWAY_BUCKETS.",
      "secret": false,
      "strategy": "default",
      "default": "penpot"
    },
    {
      "key": "PENPOT_OBJECTS_STORAGE_S3_REGION",
      "service": "Backend",
      "description": "Region used to sign requests to the gateway.",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "PENPOT_OBJECTS_STORAGE_S3_ENDPOINT",
      "service": "Backend",
      "description": "S3 Gateway on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Backend",
      "description": "Time for running requests to finish on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PENPOT_HTTP_SERVER_MAX_MULTIPART_BODY_SIZE",
      "service": "Backend",
      "description": "Max upload size (350 MiB, upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "367001600"
    },
    {
      "key": "PENPOT_MCP_SERVER_HOST",
      "service": "MCP",
      "description": "Listen on IPv4 and IPv6 (image default is IPv4 only).",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PENPOT_MCP_SERVER_PORT",
      "service": "MCP",
      "description": "MCP HTTP port (proxied by the frontend at /mcp/stream and /mcp/sse).",
      "secret": false,
      "strategy": "default",
      "default": "4401"
    },
    {
      "key": "PENPOT_MCP_WEBSOCKET_PORT",
      "service": "MCP",
      "description": "Plugin websocket port (proxied at /mcp/ws).",
      "secret": false,
      "strategy": "default",
      "default": "4402"
    },
    {
      "key": "PORT",
      "service": "Exporter",
      "description": "Exporter port (healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "6061"
    },
    {
      "key": "PENPOT_FLAGS",
      "service": "Exporter",
      "description": "Same flags as the backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_REDIS_URI",
      "service": "Exporter",
      "description": "Same Valkey as the backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_PUBLIC_URI",
      "service": "Exporter",
      "description": "Same public URL as the backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_SECRET_KEY",
      "service": "Exporter",
      "description": "Same secret key as the backend.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_INTERNAL_URI",
      "service": "Exporter",
      "description": "Frontend on the private network; the headless browser renders exports from it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_HTTP_SERVER_HOST",
      "service": "Exporter",
      "description": "Listen on IPv4 and IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PENPOT_HTTP_SERVER_PORT",
      "service": "Exporter",
      "description": "Exporter HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "6061"
    },
    {
      "key": "PORT",
      "service": "Frontend",
      "description": "nginx port (domain and healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PENPOT_FLAGS",
      "service": "Frontend",
      "description": "Same flags as the backend (baked into the web app's config.js).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_MCP_URI",
      "service": "Frontend",
      "description": "MCP server HTTP endpoint (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_MCP_URI_WS",
      "service": "Frontend",
      "description": "MCP server websocket endpoint (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_PUBLIC_URI",
      "service": "Frontend",
      "description": "Same public URL as the backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PENPOT_BACKEND_URI",
      "service": "Frontend",
      "description": "Backend on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_EXPORTER_URI",
      "service": "Frontend",
      "description": "Exporter on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PENPOT_HTTP_SERVER_MAX_BODY_SIZE",
      "service": "Frontend",
      "description": "Max request size, same as the backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "penpot-2-design-and-prototyping"
      }
    },
    "cli": "railway deploy --template penpot-2-design-and-prototyping",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b98feae8-3570-46d7-b3b5-4a0642284469",
            "serializedConfig": {
              "buckets": {
                "531e61c6-3d9f-5402-ac4b-a427a243ed90": {
                  "name": "Bucket"
                }
              },
              "services": {
                "07d4dae6-15e4-5572-bc90-b3c3c8cec91f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rclone.svg",
                  "name": "S3 Gateway",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "repo": "baranberkay96/penpot-railway",
                    "branch": "main",
                    "rootDirectory": "/services/s3-gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the S3 API on the private network.",
                      "defaultValue": "9000"
                    },
                    "BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Railway Bucket name (S3 API name).",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "BUCKET_PREFIX": {
                      "isOptional": true,
                      "description": "Optional folder inside the Bucket for all gateway data (empty = Bucket root).",
                      "defaultValue": ""
                    },
                    "BUCKET_REGION": {
                      "isOptional": false,
                      "description": "Railway Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "BUCKET_ENDPOINT": {
                      "isOptional": false,
                      "description": "Railway Bucket S3 endpoint.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "GATEWAY_BUCKETS": {
                      "isOptional": false,
                      "description": "Space-separated logical buckets created as folders at start.",
                      "defaultValue": "penpot"
                    },
                    "GATEWAY_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "rclone log level (ERROR, NOTICE, INFO, DEBUG).",
                      "defaultValue": "NOTICE"
                    },
                    "GATEWAY_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Access key Penpot signs with (generated).",
                      "defaultValue": "{{GATEWAY_ACCESS_KEY}}"
                    },
                    "GATEWAY_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Secret key Penpot signs with (generated).",
                      "defaultValue": "{{GATEWAY_SECRET_KEY}}"
                    },
                    "BUCKET_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Railway Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "BUCKET_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted URLs; set true only if the Bucket's Credentials tab says path-style.",
                      "defaultValue": "false"
                    },
                    "BUCKET_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Railway Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "0dafa5f8-de90-5c70-b925-88087770154f": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres (private network).",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "606c48ab-1eca-59f1-bcb3-5c593211645c": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "3e64801e-23ac-5148-a3fc-c9cd08467344": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/valkey.svg",
                  "name": "Valkey",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec docker-entrypoint.sh valkey-server --requirepass $VALKEY_PASSWORD --maxmemory 128mb --maxmemory-policy volatile-lfu --appendonly no\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "valkey/valkey:8.1.10"
                  },
                  "variables": {
                    "VALKEY_URL": {
                      "isOptional": true,
                      "description": "Connection URL on the private network.",
                      "defaultValue": "redis://default:${{VALKEY_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "VALKEY_PASSWORD": {
                      "isOptional": false,
                      "description": "Valkey password (generated).",
                      "defaultValue": "{{VALKEY_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "4cd65bdf-cb80-5b3e-9169-30e6ac96ff3d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/penpot.svg",
                  "name": "Backend",
                  "deploy": {
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 600
                  },
                  "source": {
                    "image": "penpotapp/backend:2.18.3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Backend port (healthcheck).",
                      "defaultValue": "6060"
                    },
                    "JVM_OPTS": {
                      "isOptional": true,
                      "description": "JVM heap limits. Raise -Xmx for very large files.",
                      "defaultValue": "-Xms256m -Xmx2g"
                    },
                    "PENPOT_FLAGS": {
                      "isOptional": false,
                      "description": "Feature flags shared by frontend, backend and exporter (registration, login, MCP...). Edit here only.",
                      "defaultValue": "enable-registration enable-login-with-password disable-email-verification enable-prepl-server enable-mcp"
                    },
                    "PENPOT_REDIS_URI": {
                      "isOptional": false,
                      "description": "Valkey (notifications, rate limits, exporter queue).",
                      "defaultValue": "redis://default:${{Valkey.VALKEY_PASSWORD}}@${{Valkey.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Gateway access key.",
                      "defaultValue": "${{S3 Gateway.GATEWAY_ACCESS_KEY}}"
                    },
                    "PENPOT_PUBLIC_URI": {
                      "isOptional": false,
                      "description": "Public URL of Penpot. Change it here for a custom domain; the other services reference it.",
                      "defaultValue": "https://${{Frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PENPOT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs sessions and tokens; shared with the exporter. Never change after first boot.",
                      "defaultValue": "{{PENPOT_SECRET_KEY}}"
                    },
                    "PENPOT_DATABASE_URI": {
                      "isOptional": false,
                      "description": "Postgres JDBC-style URI (private network).",
                      "defaultValue": "postgresql://${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.PGDATABASE}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Gateway secret key.",
                      "defaultValue": "${{S3 Gateway.GATEWAY_SECRET_KEY}}"
                    },
                    "PENPOT_HTTP_SERVER_HOST": {
                      "isOptional": true,
                      "description": "Listen on IPv4 and IPv6.",
                      "defaultValue": "::"
                    },
                    "PENPOT_HTTP_SERVER_PORT": {
                      "isOptional": true,
                      "description": "Backend HTTP port.",
                      "defaultValue": "6060"
                    },
                    "PENPOT_DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "PENPOT_DATABASE_USERNAME": {
                      "isOptional": false,
                      "description": "Database user.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "PENPOT_TELEMETRY_ENABLED": {
                      "isOptional": true,
                      "description": "Anonymous usage statistics to Penpot (set true to help the project).",
                      "defaultValue": "false"
                    },
                    "PENPOT_OBJECTS_STORAGE_BACKEND": {
                      "isOptional": false,
                      "description": "Store images, fonts and thumbnails in S3 (the Railway Bucket via S3 Gateway).",
                      "defaultValue": "s3"
                    },
                    "PENPOT_HTTP_SERVER_MAX_BODY_SIZE": {
                      "isOptional": true,
                      "description": "Max request size (350 MiB, upstream default).",
                      "defaultValue": "367001600"
                    },
                    "PENPOT_OBJECTS_STORAGE_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Logical bucket = folder in the Railway Bucket; must be in the gateway's GATEWAY_BUCKETS.",
                      "defaultValue": "penpot"
                    },
                    "PENPOT_OBJECTS_STORAGE_S3_REGION": {
                      "isOptional": true,
                      "description": "Region used to sign requests to the gateway.",
                      "defaultValue": "us-east-1"
                    },
                    "PENPOT_OBJECTS_STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 Gateway on the private network.",
                      "defaultValue": "http://${{S3 Gateway.RAILWAY_PRIVATE_DOMAIN}}:${{S3 Gateway.PORT}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time for running requests to finish on redeploy.",
                      "defaultValue": "30"
                    },
                    "PENPOT_HTTP_SERVER_MAX_MULTIPART_BODY_SIZE": {
                      "isOptional": true,
                      "description": "Max upload size (350 MiB, upstream default).",
                      "defaultValue": "367001600"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "733fda59-713e-5196-a9fc-981f55facf01": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/penpot.svg",
                  "name": "MCP",
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "penpotapp/mcp:2.18.3"
                  },
                  "variables": {
                    "PENPOT_MCP_SERVER_HOST": {
                      "isOptional": true,
                      "description": "Listen on IPv4 and IPv6 (image default is IPv4 only).",
                      "defaultValue": "::"
                    },
                    "PENPOT_MCP_SERVER_PORT": {
                      "isOptional": true,
                      "description": "MCP HTTP port (proxied by the frontend at /mcp/stream and /mcp/sse).",
                      "defaultValue": "4401"
                    },
                    "PENPOT_MCP_WEBSOCKET_PORT": {
                      "isOptional": true,
                      "description": "Plugin websocket port (proxied at /mcp/ws).",
                      "defaultValue": "4402"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "85f916ce-2e9b-5d4c-8097-2fbb2a4fd197": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/penpot.svg",
                  "name": "Exporter",
                  "deploy": {
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "image": "penpotapp/exporter:2.18.3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Exporter port (healthcheck).",
                      "defaultValue": "6061"
                    },
                    "PENPOT_FLAGS": {
                      "isOptional": false,
                      "description": "Same flags as the backend.",
                      "defaultValue": "${{Backend.PENPOT_FLAGS}}"
                    },
                    "PENPOT_REDIS_URI": {
                      "isOptional": false,
                      "description": "Same Valkey as the backend.",
                      "defaultValue": "${{Backend.PENPOT_REDIS_URI}}"
                    },
                    "PENPOT_PUBLIC_URI": {
                      "isOptional": false,
                      "description": "Same public URL as the backend.",
                      "defaultValue": "${{Backend.PENPOT_PUBLIC_URI}}"
                    },
                    "PENPOT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Same secret key as the backend.",
                      "defaultValue": "${{Backend.PENPOT_SECRET_KEY}}"
                    },
                    "PENPOT_INTERNAL_URI": {
                      "isOptional": false,
                      "description": "Frontend on the private network; the headless browser renders exports from it.",
                      "defaultValue": "http://${{Frontend.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "PENPOT_HTTP_SERVER_HOST": {
                      "isOptional": true,
                      "description": "Listen on IPv4 and IPv6.",
                      "defaultValue": "::"
                    },
                    "PENPOT_HTTP_SERVER_PORT": {
                      "isOptional": true,
                      "description": "Exporter HTTP port.",
                      "defaultValue": "6061"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "d8eafffd-c53e-5964-a8d5-b0ed38342d60": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/penpot.svg",
                  "name": "Frontend",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/penpot-railway",
                    "branch": "main",
                    "rootDirectory": "/services/frontend"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "nginx port (domain and healthcheck).",
                      "defaultValue": "8080"
                    },
                    "PENPOT_FLAGS": {
                      "isOptional": false,
                      "description": "Same flags as the backend (baked into the web app's config.js).",
                      "defaultValue": "${{Backend.PENPOT_FLAGS}}"
                    },
                    "PENPOT_MCP_URI": {
                      "isOptional": true,
                      "description": "MCP server HTTP endpoint (private network).",
                      "defaultValue": "http://${{MCP.RAILWAY_PRIVATE_DOMAIN}}:4401"
                    },
                    "PENPOT_MCP_URI_WS": {
                      "isOptional": true,
                      "description": "MCP server websocket endpoint (private network).",
                      "defaultValue": "http://${{MCP.RAILWAY_PRIVATE_DOMAIN}}:4402"
                    },
                    "PENPOT_PUBLIC_URI": {
                      "isOptional": false,
                      "description": "Same public URL as the backend.",
                      "defaultValue": "${{Backend.PENPOT_PUBLIC_URI}}"
                    },
                    "PENPOT_BACKEND_URI": {
                      "isOptional": false,
                      "description": "Backend on the private network.",
                      "defaultValue": "http://${{Backend.RAILWAY_PRIVATE_DOMAIN}}:6060"
                    },
                    "PENPOT_EXPORTER_URI": {
                      "isOptional": false,
                      "description": "Exporter on the private network.",
                      "defaultValue": "http://${{Exporter.RAILWAY_PRIVATE_DOMAIN}}:6061"
                    },
                    "PENPOT_HTTP_SERVER_MAX_BODY_SIZE": {
                      "isOptional": true,
                      "description": "Max request size, same as the backend.",
                      "defaultValue": "${{Backend.PENPOT_HTTP_SERVER_MAX_BODY_SIZE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Frontend",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 7,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-11T19:07:49.275Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_bef8ea99620d4546a046",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
