---
title: Migrate to Vercel Daemons
description: Move background workers to Vercel Daemons from Fly.io, Railway, or Render with a migration guide for each provider.
url: "https://vercel.com/docs/daemons/migrate"
last_updated: 2018-10-20
related:
  - /docs/daemons/config-reference
  - /docs/functions
  - /docs/services
  - /docs/cron-jobs
  - /docs/background-workers
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
search_kb_with_vercel_cli: npx vercel@latest kb search "<query>"
---

# Migrate to Vercel Daemons

To move a background worker to Vercel Daemons, package it with a `Dockerfile`, declare it under [`daemons`](/docs/daemons/config-reference) in `vercel.json`, and deploy to production. Start with zero instances, then move queue processing while your current provider and Vercel read from the same queue.

Your worker fits a daemon when it pulls its own work and keeps running, because Vercel restarts an instance when its process exits. Move HTTP handlers to [Vercel Functions](/docs/functions) or [Services](/docs/services), and tasks that run on a schedule and exit to [Cron Jobs](/docs/cron-jobs). To choose between a daemon, queued jobs, and a durable workflow, compare [background worker options](/docs/background-workers).

## What changes when you migrate

During the Daemons beta, these behaviors apply whichever provider you migrate from:

- **Daemons build from a Dockerfile**: Each daemon needs a [`Dockerfile` or `Containerfile`](/docs/daemons/config-reference#entrypoint), and Vercel builds the image for Linux `amd64`. If your current provider builds the worker from source, add one.
- **`command` replaces `ENTRYPOINT` and `CMD`**: When you set a daemon's [`command`](/docs/daemons/config-reference#command), the command replaces both, and Vercel doesn't run it through a shell. If the image's entrypoint script does setup the worker needs, make the script the first item of `command`.
- **Daemons accept no inbound traffic**: Daemons can't receive inbound HTTP or TCP traffic or be the target of a [service binding](/docs/services/bindings) or a rewrite. Each daemon connects out to your queue and database, so replace your current provider's private hostnames with endpoints that Vercel can reach.
- **Instance counts are fixed**: Daemons don't autoscale. Set a count for each region in [`instances`](/docs/daemons/config-reference#instances), or [override the counts](/docs/daemons/managing-daemons#scaling-a-daemon) without a new deployment. An override stays in place across deployments until you clear it.
- **Daemons run only in production**: Preview deployments and `vercel dev` don't start daemons. Test the image [locally with Docker](/docs/daemons#local-development) before its first production deployment.
- **Storage is ephemeral**: Daemon instances have no persistent local storage. Move files from a volume or disk to [Vercel Blob](/docs/vercel-blob) or a database.
- **Shutdown starts with `SIGTERM`**: During a rollout or a scale-down, Vercel sends `SIGTERM`, then terminates the process after 30 seconds unless you set [`terminationGracePeriodSeconds`](/docs/daemons/config-reference#terminationgraceperiodseconds). Old and new instances run at once for a short time during a rollout, so make jobs safe to retry.

See [Daemons limits](/docs/daemons/limits) for instance sizes, quotas, and unsupported features.

## Migration guides by provider

Each guide maps the provider's worker settings to a daemon's configuration, lists the features that need a different design, and walks through a queue handoff that keeps your current workers running until the daemon handles the load. The guides move only the worker, and each one links to the provider's guide for the web app, databases, and DNS.

### Fly.io

Fly.io process group commands replace the image's `CMD` and keep its `ENTRYPOINT`, and Fly.io sends `SIGINT` by default when it stops a Machine. [Migrate Fly.io workers to Vercel Daemons](/kb/guide/migrate-fly-io-workers-to-vercel-daemons) moves a Sidekiq worker with its existing Dockerfile, maps `fly.toml` process groups, Machine sizes, and `kill_timeout` to a daemon entry, and covers alternatives for `release_command`, Supercronic schedules, and private networking.

### Railway

Railway workers built with Railpack or Nixpacks have no Dockerfile, and `*.railway.internal` hostnames resolve only on Railway's private network. [Migrate Railway workers to Vercel Daemons](/kb/guide/migrate-railway-workers-to-vercel-daemons) adds a Dockerfile for a BullMQ worker, maps replicas, resource limits, and draining time to a daemon entry, and covers alternatives for cron services, volumes, and PR environments.

### Render

Render configures a background worker as a `type: worker` service in `render.yaml`, and a worker on a native runtime such as `python` or `node` has no Dockerfile. [Migrate Render background workers to Vercel Daemons](/kb/guide/migrate-render-workers-to-vercel-daemons) translates `startCommand`, `numInstances`, `plan`, and `maxShutdownDelaySeconds` to a daemon entry for a Celery worker, moves Celery beat so that only one scheduler runs at a time, and covers alternatives for autoscaling, secret files, and `preDeployCommand`.

If your provider isn't listed, start with [your first daemon](/docs/daemons#quick-start) and the [Daemon configuration reference](/docs/daemons/config-reference).

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
