{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ef4ef889-012e-4e38-bf01-c0ac64dfddc0",
    "slug": "5P18on",
    "name": "Strapi v5 + AWS S3 | Starter Template ",
    "description": "Strapi v5 + AWS S3 Starter Template",
    "url": "https://railway.com/deploy/5P18on",
    "upstream": {
      "repo_url": "https://github.com/compbyter/strapi-aws-s3-starter-template"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "strapi-aws-s3-starter-template",
      "source": {
        "repo": "https://github.com/compbyter/strapi-aws-s3-starter-template"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "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 database.",
      "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": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "URL",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HOST",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "1337"
    },
    {
      "key": "APP_KEYS",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for APP_KEYS.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AWS_REGION",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for AWS_REGION.",
      "secret": false,
      "strategy": "default",
      "default": "eu-north-1"
    },
    {
      "key": "JWT_SECRET",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NIXPACKS_PKGS",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for NIXPACKS_PKGS.",
      "secret": false,
      "strategy": "default",
      "default": "yarn"
    },
    {
      "key": "API_TOKEN_SALT",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for API_TOKEN_SALT.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_CLIENT",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for DATABASE_CLIENT.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "ADMIN_JWT_SECRET",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for ADMIN_JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NIXPACKS_BUILD_CMD",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for NIXPACKS_BUILD_CMD.",
      "secret": false,
      "strategy": "default",
      "default": "yarn build"
    },
    {
      "key": "NIXPACKS_START_CMD",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for NIXPACKS_START_CMD.",
      "secret": false,
      "strategy": "default",
      "default": "yarn start"
    },
    {
      "key": "TRANSFER_TOKEN_SALT",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for TRANSFER_TOKEN_SALT.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for DATABASE_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NIXPACKS_INSTALL_CMD",
      "service": "strapi-aws-s3-starter-template",
      "description": "Provide a value for NIXPACKS_INSTALL_CMD.",
      "secret": false,
      "strategy": "default",
      "default": "yarn install"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "5P18on"
      }
    },
    "cli": "railway deploy --template 5P18on",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ef4ef889-012e-4e38-bf01-c0ac64dfddc0",
            "serializedConfig": {
              "services": {
                "3e5bf50b-6d17-4c20-80d8-43e00e4d0a09": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
                  },
                  "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 database.",
                      "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}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "3e5bf50b-6d17-4c20-80d8-43e00e4d0a09": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "a7ec5f67-3490-46d1-a88f-7f1308cd8e75": {
                  "name": "strapi-aws-s3-starter-template",
                  "source": {
                    "repo": "compbyter/strapi-aws-s3-starter-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "URL": {
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HOST": {
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "defaultValue": "1337"
                    },
                    "APP_KEYS": {
                      "defaultValue": "{{APP_KEYS}}"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "eu-north-1"
                    },
                    "JWT_SECRET": {
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "defaultValue": "${{Postgres.DATABASE_PUBLIC_URL}}"
                    },
                    "NIXPACKS_PKGS": {
                      "defaultValue": "yarn"
                    },
                    "API_TOKEN_SALT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{API_TOKEN_SALT}}"
                    },
                    "AWS_BUCKET_NAME": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "DATABASE_CLIENT": {
                      "defaultValue": "postgres"
                    },
                    "ADMIN_JWT_SECRET": {
                      "defaultValue": "{{ADMIN_JWT_SECRET}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "AWS_ACCESS_SECRET": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "NIXPACKS_BUILD_CMD": {
                      "defaultValue": "yarn build"
                    },
                    "NIXPACKS_START_CMD": {
                      "defaultValue": "yarn start"
                    },
                    "TRANSFER_TOKEN_SALT": {
                      "defaultValue": "{{TRANSFER_TOKEN_SALT}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NIXPACKS_INSTALL_CMD": {
                      "defaultValue": "yarn install"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-27T16:14:48.401Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-26T12:05:07.756Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_de15c763e80041499e8a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 309,
    "typical_build_seconds": 226,
    "typical_start_seconds": 10,
    "slowest_service": "strapi-aws-s3-starter-template"
  }
}
