{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c7989643-ac92-469a-985b-0c46eed9c046",
    "slug": "deploy-dossier-ai-resume-tailoring",
    "name": "Dossier Resume Tailoring",
    "description": "Tailor CVs and cover letters to each job from your own profile",
    "url": "https://railway.com/deploy/deploy-dossier-ai-resume-tailoring",
    "upstream": {
      "image": "ghcr.io/onepush-dev/dossier:1.10.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Dossier",
      "source": {
        "image": "ghcr.io/onepush-dev/dossier:1.10.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname of the database.",
      "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": "Database user (reference to POSTGRES_USER).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database name (reference to POSTGRES_DB).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Database password (reference to the generated POSTGRES_PASSWORD).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first start (railway).",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string other services reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser name (postgres).",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity in days of the self-signed SSL certificate.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Postgres gets to shut down cleanly on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "TZ",
      "service": "Dossier",
      "description": "Time zone for nightly backups (run at 03:00 local). Default UTC.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Dossier",
      "description": "Port the Next.js server listens on and Railway routes to (3000).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "Dossier",
      "description": "Bind address; :: listens on IPv4 and IPv6 for Railway networking.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "DATABASE_URL",
      "service": "Dossier",
      "description": "Postgres connection string, referenced from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOSSIER_SECRET",
      "service": "Dossier",
      "description": "Signs sessions and encrypts stored API keys; generated per deploy. Changing it signs you out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOSSIER_AI_MODEL",
      "service": "Dossier",
      "description": "Default model for the AI provider (gpt-4o-mini). Overridable in Settings.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-4o-mini"
    },
    {
      "key": "DOSSIER_DATA_DIR",
      "service": "Dossier",
      "description": "Where backups and export zips are written; on the /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "DOSSIER_TELEMETRY",
      "service": "Dossier",
      "description": "Daily anonymous usage ping: off by default in this template.",
      "secret": false,
      "strategy": "default",
      "default": "off"
    },
    {
      "key": "DOSSIER_PUBLIC_URL",
      "service": "Dossier",
      "description": "Public HTTPS address of Dossier, used for the Google OAuth redirect.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOSSIER_AI_PROVIDER",
      "service": "Dossier",
      "description": "Default AI provider: openai, anthropic, mistral, local or lmstudio.",
      "secret": false,
      "strategy": "default",
      "default": "openai"
    },
    {
      "key": "DOSSIER_JOBS_SOURCE",
      "service": "Dossier",
      "description": "Default job search source; freehire needs no key (jsearch, adzuna, off also work).",
      "secret": false,
      "strategy": "default",
      "default": "freehire"
    },
    {
      "key": "DOSSIER_LOGIN_PASSWORD",
      "service": "Dossier",
      "description": "Your sign-in password, generated per deploy. Hashed to argon2id at start; change it and redeploy to rotate.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DOSSIER_AI_TIMEOUT_SECONDS",
      "service": "Dossier",
      "description": "Max seconds one AI call may take (120 for hosted models).",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "DOSSIER_BACKUP_RETENTION_DAYS",
      "service": "Dossier",
      "description": "Days of nightly backups kept on the volume (14).",
      "secret": false,
      "strategy": "default",
      "default": "14"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-dossier-ai-resume-tailoring"
      }
    },
    "cli": "railway deploy --template deploy-dossier-ai-resume-tailoring",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c7989643-ac92-469a-985b-0c46eed9c046",
            "serializedConfig": {
              "services": {
                "aeaa9686-75ef-4912-8d3b-e7c687d32c47": {
                  "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"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory inside the volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname of the database.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port (5432).",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Database user (reference to POSTGRES_USER).",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database name (reference to POSTGRES_DB).",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Database password (reference to the generated POSTGRES_PASSWORD).",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first start (railway).",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string other services reference.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser name (postgres).",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity in days of the self-signed SSL certificate.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, generated per deploy.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Postgres gets to shut down cleanly on redeploy.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "aeaa9686-75ef-4912-8d3b-e7c687d32c47": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c7e08ed9-1058-4077-ba3c-6100e0050c64": {
                  "icon": "https://github.com/AienTech.png",
                  "name": "Dossier",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/dossier:1.10.0"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone for nightly backups (run at 03:00 local). Default UTC.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the Next.js server listens on and Railway routes to (3000).",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Bind address; :: listens on IPv4 and IPv6 for Railway networking.",
                      "defaultValue": "::"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string, referenced from the Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DOSSIER_AI_KEY": {
                      "isOptional": true,
                      "description": "Optional. API key for DOSSIER_AI_PROVIDER (OpenAI by default; Anthropic or Mistral). Leave empty to run without AI or add it later in Settings.",
                      "defaultValue": ""
                    },
                    "DOSSIER_SECRET": {
                      "isOptional": false,
                      "description": "Signs sessions and encrypts stored API keys; generated per deploy. Changing it signs you out.",
                      "defaultValue": "{{DOSSIER_SECRET}}"
                    },
                    "DOSSIER_AI_MODEL": {
                      "isOptional": false,
                      "description": "Default model for the AI provider (gpt-4o-mini). Overridable in Settings.",
                      "defaultValue": "gpt-4o-mini"
                    },
                    "DOSSIER_DATA_DIR": {
                      "isOptional": false,
                      "description": "Where backups and export zips are written; on the /data volume.",
                      "defaultValue": "/data"
                    },
                    "DOSSIER_TELEMETRY": {
                      "isOptional": false,
                      "description": "Daily anonymous usage ping: off by default in this template.",
                      "defaultValue": "off"
                    },
                    "DOSSIER_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS address of Dossier, used for the Google OAuth redirect.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOSSIER_AI_PROVIDER": {
                      "isOptional": false,
                      "description": "Default AI provider: openai, anthropic, mistral, local or lmstudio.",
                      "defaultValue": "openai"
                    },
                    "DOSSIER_JOBS_SOURCE": {
                      "isOptional": false,
                      "description": "Default job search source; freehire needs no key (jsearch, adzuna, off also work).",
                      "defaultValue": "freehire"
                    },
                    "DOSSIER_LOGIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Your sign-in password, generated per deploy. Hashed to argon2id at start; change it and redeploy to rotate.",
                      "defaultValue": "{{DOSSIER_LOGIN_PASSWORD}}"
                    },
                    "DOSSIER_AI_TIMEOUT_SECONDS": {
                      "isOptional": false,
                      "description": "Max seconds one AI call may take (120 for hosted models).",
                      "defaultValue": "120"
                    },
                    "DOSSIER_BACKUP_RETENTION_DAYS": {
                      "isOptional": false,
                      "description": "Days of nightly backups kept on the volume (14).",
                      "defaultValue": "14"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "c7e08ed9-1058-4077-ba3c-6100e0050c64": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Dossier",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-31T04:14:55.520Z",
  "generator_version": "0.1.0"
}
