{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8be693a4-00a4-4bdb-92d3-aea6f671862c",
    "slug": "dossier-v1-ai-job-search-and-resume-tail",
    "name": "Dossier v1 AI Job Search and Resume Tailor",
    "description": "Track job applications and generate tailored resumes and cover letters.",
    "url": "https://railway.com/deploy/dossier-v1-ai-job-search-and-resume-tail",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/dossier-railway"
    }
  },
  "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": {
        "repo": "https://github.com/baranberkay96/dossier-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "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": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "TZ",
      "service": "Dossier",
      "description": "Time zone for nightly backups (03:00) and the job agent, e.g. Europe/Berlin.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Dossier",
      "description": "Port the Next.js server listens on. The public domain and the healthcheck use it.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "Dossier",
      "description": "Bind address. :: listens on IPv4 and IPv6 (Node is dual-stack).",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "DATABASE_URL",
      "service": "Dossier",
      "description": "Postgres on the private network. Migrations run on every boot.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOSSIER_SECRET",
      "service": "Dossier",
      "description": "Signs sessions, encrypts API keys saved in Settings and salts the login hash. Keep it: changing it signs you out and makes saved keys unreadable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOSSIER_VERSION",
      "service": "Dossier",
      "description": "Tag of ghcr.io/aientech/dossier, passed to the build. Change and redeploy to upgrade; read the upgrade notes and back up first.",
      "secret": false,
      "strategy": "default",
      "default": "v1.10.0"
    },
    {
      "key": "DOSSIER_DATA_DIR",
      "service": "Dossier",
      "description": "Nightly backups, pre-import backups and PDF zips. Must stay on the /data volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "DOSSIER_PUBLIC_URL",
      "service": "Dossier",
      "description": "Public HTTPS address, used for Google sign-in and the Claude connector. Change to https://{your-domain} when you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOSSIER_LOGIN_PASSWORD",
      "service": "Dossier",
      "description": "Your sign-in password, generated at deploy (min. 12 chars). Hashed with argon2id at boot; Dossier never sees it in plain text. Change and redeploy to rotate.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DOSSIER_DB_WAIT_SECONDS",
      "service": "Dossier",
      "description": "How long boot waits for Postgres before giving up (Railway then restarts the service).",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "DOSSIER_JOBS_ARBEITSAGENTUR",
      "service": "Dossier",
      "description": "off removes the unofficial Bundesagentur für Arbeit source, whose terms forbid automated access. on offers it behind an in-app warning.",
      "secret": false,
      "strategy": "default",
      "default": "off"
    },
    {
      "key": "DOSSIER_BACKUP_RETENTION_DAYS",
      "service": "Dossier",
      "description": "Days of nightly backups kept on the volume.",
      "secret": false,
      "strategy": "default",
      "default": "14"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dossier-v1-ai-job-search-and-resume-tail"
      }
    },
    "cli": "railway deploy --template dossier-v1-ai-job-search-and-resume-tail",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8be693a4-00a4-4bdb-92d3-aea6f671862c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "60c61374-333b-5dbd-837a-f73694bfea9a": {
                  "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": true,
                      "description": "Location where the database will be initialized.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for Data panel.",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for Data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "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": true,
                      "description": "Password to connect to DB.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to cleanly shut down.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "0b2793d4-0aab-5137-b3c8-710c96a2e82b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "69019a81-141e-538e-b04f-951f60a63890": {
                  "icon": "https://cdn.jsdelivr.net/gh/AienTech/dossier@v1.10.0/src/app/icon.svg",
                  "name": "Dossier",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/dossier-railway",
                    "branch": "main",
                    "rootDirectory": "/services/dossier"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Time zone for nightly backups (03:00) and the job agent, e.g. Europe/Berlin.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the Next.js server listens on. The public domain and the healthcheck use it.",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": true,
                      "description": "Bind address. :: listens on IPv4 and IPv6 (Node is dual-stack).",
                      "defaultValue": "::"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "Postgres on the private network. Migrations run on every boot.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DOSSIER_AI_KEY": {
                      "isOptional": true,
                      "description": "Optional API key for DOSSIER_AI_PROVIDER. Better: enter it in Settings, where it is stored encrypted. The app runs without one.",
                      "defaultValue": ""
                    },
                    "DOSSIER_AI_URL": {
                      "isOptional": true,
                      "description": "Optional base URL for an OpenAI-compatible server or Ollama, e.g. http://ollama.railway.internal:11434.",
                      "defaultValue": ""
                    },
                    "DOSSIER_SECRET": {
                      "isOptional": true,
                      "description": "Signs sessions, encrypts API keys saved in Settings and salts the login hash. Keep it: changing it signs you out and makes saved keys unreadable.",
                      "defaultValue": "{{DOSSIER_SECRET}}"
                    },
                    "DOSSIER_VERSION": {
                      "isOptional": true,
                      "description": "Tag of ghcr.io/aientech/dossier, passed to the build. Change and redeploy to upgrade; read the upgrade notes and back up first.",
                      "defaultValue": "v1.10.0"
                    },
                    "DOSSIER_AI_MODEL": {
                      "isOptional": true,
                      "description": "Optional default model. Empty: Dossier's default for Anthropic and Mistral; OpenAI-compatible and local providers need one here or in Settings.",
                      "defaultValue": ""
                    },
                    "DOSSIER_DATA_DIR": {
                      "isOptional": true,
                      "description": "Nightly backups, pre-import backups and PDF zips. Must stay on the /data volume.",
                      "defaultValue": "/data"
                    },
                    "DOSSIER_PASSWORD": {
                      "isOptional": true,
                      "description": "Optional. An argon2id hash from Dossier's hash-password tool. When set it is used instead of DOSSIER_LOGIN_PASSWORD, so you can delete the plain password.",
                      "defaultValue": ""
                    },
                    "DOSSIER_TELEMETRY": {
                      "isOptional": true,
                      "description": "Optional usage ping answer: on or off. Empty: Dossier asks once after sign-in and sends nothing before a yes.",
                      "defaultValue": ""
                    },
                    "DOSSIER_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "Public HTTPS address, used for Google sign-in and the Claude connector. Change to https://{your-domain} when you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOSSIER_AI_PROVIDER": {
                      "isOptional": true,
                      "description": "Optional default AI provider: openai, anthropic, mistral, local or lmstudio. Empty: choose in Settings > AI provider (saved choices win).",
                      "defaultValue": ""
                    },
                    "DOSSIER_JOBS_SOURCE": {
                      "isOptional": true,
                      "description": "Optional default job source: adzuna, jsearch, freehire or off. Empty: Find jobs stays off until you pick one in Settings.",
                      "defaultValue": ""
                    },
                    "DOSSIER_LOGIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Your sign-in password, generated at deploy (min. 12 chars). Hashed with argon2id at boot; Dossier never sees it in plain text. Change and redeploy to rotate.",
                      "defaultValue": "{{DOSSIER_LOGIN_PASSWORD}}"
                    },
                    "DOSSIER_DB_WAIT_SECONDS": {
                      "isOptional": true,
                      "description": "How long boot waits for Postgres before giving up (Railway then restarts the service).",
                      "defaultValue": "300"
                    },
                    "DOSSIER_JOBS_ARBEITSAGENTUR": {
                      "isOptional": true,
                      "description": "off removes the unofficial Bundesagentur für Arbeit source, whose terms forbid automated access. on offers it behind an in-app warning.",
                      "defaultValue": "off"
                    },
                    "DOSSIER_BACKUP_RETENTION_DAYS": {
                      "isOptional": true,
                      "description": "Days of nightly backups kept on the volume.",
                      "defaultValue": "14"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "d3e016fd-d295-5991-badd-9b23394fd0ba": {
                      "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-30T16:14:57.468Z",
  "generator_version": "0.1.0"
}
