{
  "manifest_version": "1.0.0",
  "template": {
    "id": "16b0a787-f846-4bfc-9d24-9bcfe9dec092",
    "slug": "nextcloud-34-files-and-collaboration",
    "name": "Nextcloud 34 Files and Collaboration",
    "description": "Your own cloud for files, calendars and contacts, with Redis and cron.",
    "url": "https://railway.com/deploy/nextcloud-34-files-and-collaboration",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/nextcloud-railway"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Nextcloud",
      "source": {
        "repo": "https://github.com/baranberkay96/nextcloud-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Nextcloud",
      "description": "Apache port (domain and healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "REDIS_HOST",
      "service": "Nextcloud",
      "description": "Redis host for file locking, distributed cache and PHP sessions.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BUCKET_NAME",
      "service": "Nextcloud",
      "description": "Railway Bucket name (used when NEXTCLOUD_PRIMARY_STORAGE=bucket).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Nextcloud",
      "description": "Database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_REGION",
      "service": "Nextcloud",
      "description": "Railway Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "Nextcloud",
      "description": "Postgres host (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Nextcloud",
      "description": "Database user used for installation (Nextcloud creates its own user).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTCLOUD_CRON",
      "service": "Nextcloud",
      "description": "Run background jobs with cron inside this container every 5 minutes.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BUCKET_ENDPOINT",
      "service": "Nextcloud",
      "description": "Railway Bucket S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OVERWRITECLIURL",
      "service": "Nextcloud",
      "description": "Base URL used in links created by cron/CLI (emails, notifications). Update for a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDIS_HOST_PORT",
      "service": "Nextcloud",
      "description": "Redis port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "TRUSTED_PROXIES",
      "service": "Nextcloud",
      "description": "Railway proxy ranges, so Nextcloud sees real client IPs (brute-force protection).",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 fd00::/8"
    },
    {
      "key": "PHP_MEMORY_LIMIT",
      "service": "Nextcloud",
      "description": "PHP memory limit per request.",
      "secret": false,
      "strategy": "default",
      "default": "512M"
    },
    {
      "key": "PHP_UPLOAD_LIMIT",
      "service": "Nextcloud",
      "description": "Max single (non-chunked) upload; browsers and sync clients upload large files in chunks.",
      "secret": false,
      "strategy": "default",
      "default": "512M"
    },
    {
      "key": "OVERWRITEPROTOCOL",
      "service": "Nextcloud",
      "description": "Generate https:// links behind Railway's TLS proxy.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Nextcloud",
      "description": "Database password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST_PASSWORD",
      "service": "Nextcloud",
      "description": "Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUCKET_ACCESS_KEY_ID",
      "service": "Nextcloud",
      "description": "Railway Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTCLOUD_ADMIN_USER",
      "service": "Nextcloud",
      "description": "Admin account created on first start.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "FORWARDED_FOR_HEADERS",
      "service": "Nextcloud",
      "description": "Header holding the client IP.",
      "secret": false,
      "strategy": "default",
      "default": "HTTP_X_FORWARDED_FOR"
    },
    {
      "key": "NEXTCLOUD_INSTALL_APPS",
      "service": "Nextcloud",
      "description": "App-store apps installed right after the first install (space-separated).",
      "secret": false,
      "strategy": "default",
      "default": "calendar contacts"
    },
    {
      "key": "BUCKET_FORCE_PATH_STYLE",
      "service": "Nextcloud",
      "description": "Railway Buckets use virtual-hosted URLs; true only if the Bucket's Credentials tab says path-style.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXTCLOUD_INIT_HTACCESS",
      "service": "Nextcloud",
      "description": "Refresh .htaccess on start (pretty URLs without index.php).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BUCKET_SECRET_ACCESS_KEY",
      "service": "Nextcloud",
      "description": "Railway Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTCLOUD_ADMIN_PASSWORD",
      "service": "Nextcloud",
      "description": "Admin password (generated). Used only for the first install; change it later in Personal settings.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXTCLOUD_PRIMARY_STORAGE",
      "service": "Nextcloud",
      "description": "Where files are stored: 'volume' (service volume, 5 GB on Hobby) or 'bucket' (Railway Bucket, unlimited). Choose before the first deploy; locked after installation.",
      "secret": false,
      "strategy": "default",
      "default": "volume"
    },
    {
      "key": "NEXTCLOUD_TRUSTED_DOMAINS",
      "service": "Nextcloud",
      "description": "Space-separated domains allowed to reach Nextcloud. Add your custom domain here; re-applied on every start.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "APACHE_MAX_REQUEST_WORKERS",
      "service": "Nextcloud",
      "description": "Max parallel PHP requests (~60-120 MB each). Raise with more RAM.",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "NEXTCLOUD_MAINTENANCE_WINDOW_START",
      "service": "Nextcloud",
      "description": "UTC hour when heavy background jobs may run.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Nextcloud",
      "description": "Time for running requests to finish on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nextcloud-34-files-and-collaboration"
      }
    },
    "cli": "railway deploy --template nextcloud-34-files-and-collaboration",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "16b0a787-f846-4bfc-9d24-9bcfe9dec092",
            "serializedConfig": {
              "buckets": {
                "4c3c5936-d2c8-5794-870f-fcfab63cfed6": {
                  "name": "Bucket"
                }
              },
              "services": {
                "6c6d1063-8dd4-5f48-82a5-8da96dc13dd3": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "7bf8712b-1e26-5863-9b26-57818aac7620": {
                      "mountPath": "/data"
                    }
                  }
                },
                "93aa7fff-c90f-5d64-9b44-bd7b6e0d02ec": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/nextcloud.svg",
                  "name": "Nextcloud",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/status.php",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 900
                  },
                  "source": {
                    "repo": "baranberkay96/nextcloud-railway",
                    "branch": "main",
                    "rootDirectory": "/services/nextcloud"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Apache port (domain and healthcheck).",
                      "defaultValue": "80"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis host for file locking, distributed cache and PHP sessions.",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "BUCKET_NAME": {
                      "isOptional": true,
                      "description": "Railway Bucket name (used when NEXTCLOUD_PRIMARY_STORAGE=bucket).",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "BUCKET_REGION": {
                      "isOptional": true,
                      "description": "Railway Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres host (private network).",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user used for installation (Nextcloud creates its own user).",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "NEXTCLOUD_CRON": {
                      "isOptional": true,
                      "description": "Run background jobs with cron inside this container every 5 minutes.",
                      "defaultValue": "true"
                    },
                    "BUCKET_ENDPOINT": {
                      "isOptional": true,
                      "description": "Railway Bucket S3 endpoint.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "OVERWRITECLIURL": {
                      "isOptional": true,
                      "description": "Base URL used in links created by cron/CLI (emails, notifications). Update for a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REDIS_HOST_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "6379"
                    },
                    "TRUSTED_PROXIES": {
                      "isOptional": true,
                      "description": "Railway proxy ranges, so Nextcloud sees real client IPs (brute-force protection).",
                      "defaultValue": "100.64.0.0/10 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 fd00::/8"
                    },
                    "PHP_MEMORY_LIMIT": {
                      "isOptional": true,
                      "description": "PHP memory limit per request.",
                      "defaultValue": "512M"
                    },
                    "PHP_UPLOAD_LIMIT": {
                      "isOptional": true,
                      "description": "Max single (non-chunked) upload; browsers and sync clients upload large files in chunks.",
                      "defaultValue": "512M"
                    },
                    "OVERWRITEPROTOCOL": {
                      "isOptional": false,
                      "description": "Generate https:// links behind Railway's TLS proxy.",
                      "defaultValue": "https"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "REDIS_HOST_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password.",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "BUCKET_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Railway Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "NEXTCLOUD_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Admin account created on first start.",
                      "defaultValue": "admin"
                    },
                    "FORWARDED_FOR_HEADERS": {
                      "isOptional": true,
                      "description": "Header holding the client IP.",
                      "defaultValue": "HTTP_X_FORWARDED_FOR"
                    },
                    "NEXTCLOUD_INSTALL_APPS": {
                      "isOptional": true,
                      "description": "App-store apps installed right after the first install (space-separated).",
                      "defaultValue": "calendar contacts"
                    },
                    "BUCKET_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted URLs; true only if the Bucket's Credentials tab says path-style.",
                      "defaultValue": "false"
                    },
                    "NEXTCLOUD_INIT_HTACCESS": {
                      "isOptional": true,
                      "description": "Refresh .htaccess on start (pretty URLs without index.php).",
                      "defaultValue": "true"
                    },
                    "BUCKET_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Railway Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "NEXTCLOUD_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin password (generated). Used only for the first install; change it later in Personal settings.",
                      "defaultValue": "{{NEXTCLOUD_ADMIN_PASSWORD}}"
                    },
                    "NEXTCLOUD_PRIMARY_STORAGE": {
                      "isOptional": false,
                      "description": "Where files are stored: 'volume' (service volume, 5 GB on Hobby) or 'bucket' (Railway Bucket, unlimited). Choose before the first deploy; locked after installation.",
                      "defaultValue": "volume"
                    },
                    "NEXTCLOUD_TRUSTED_DOMAINS": {
                      "isOptional": false,
                      "description": "Space-separated domains allowed to reach Nextcloud. Add your custom domain here; re-applied on every start.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "APACHE_MAX_REQUEST_WORKERS": {
                      "isOptional": true,
                      "description": "Max parallel PHP requests (~60-120 MB each). Raise with more RAM.",
                      "defaultValue": "16"
                    },
                    "NEXTCLOUD_DEFAULT_PHONE_REGION": {
                      "isOptional": true,
                      "description": "Optional ISO 3166-1 country code (e.g. DE) for phone numbers without a country prefix.",
                      "defaultValue": ""
                    },
                    "NEXTCLOUD_MAINTENANCE_WINDOW_START": {
                      "isOptional": true,
                      "description": "UTC hour when heavy background jobs may run.",
                      "defaultValue": "1"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time for running requests to finish on redeploy.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "2f769693-d582-5fe8-bb76-02e6e0d2dbc9": {
                      "mountPath": "/var/www/html"
                    }
                  }
                },
                "a516f3e3-dcbe-5d90-935b-9f25a5532692": {
                  "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": {
                    "4ebec455-df90-53f1-9c78-87d1d35f8376": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Nextcloud",
      "method": "GET",
      "path": "/status.php",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-11T19:11:07.820Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_8c2f5423576b496e8323",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
