{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "Saleor hosting on Edge | Self-host GraphQL commerce",
  "headline": "Saleor hosting on Edge | Self-host GraphQL commerce",
  "description": "Run Saleor on Edge: the Django GraphQL API and Celery workers on real VMs, Postgres on a private network, media in S3-compatible storage. Zero egress fees.",
  "url": "https://edge.network/solutions/saleor",
  "image": "https://edge.network/og/solutions__saleor.png",
  "inLanguage": "en",
  "publisher": {
    "@type": "Organization",
    "name": "Edge Network",
    "url": "https://edge.network",
    "logo": "https://edge.network/favicon.svg"
  },
  "isPartOf": {
    "@type": "WebSite",
    "name": "Edge Network",
    "url": "https://edge.network"
  },
  "breadcrumb": {
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://edge.network"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Solutions",
        "item": "https://edge.network/solutions"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Saleor",
        "item": "https://edge.network/solutions/saleor"
      }
    ]
  },
  "section": "solutions",
  "articleBody": "For Saleor\n\n Saleor&#x27;s GraphQL API and Celery on your own VMs\n\n Run the Saleor API and Celery workers on a real VM, keep Postgres on a private network, store media in S3-compatible storage and serve images and the Dashboard from 2,206 locations. Deploy a VM See how we host Django The setup on this page costs $58.91 a month, with no egress line.\n\n Why Saleor on Edge\n\n Saleor splits cleanly across two VMs \n\n Saleor is a Django app with a GraphQL API, a Celery worker and a Postgres database. Each part has an obvious home, and nothing on the bill counts requests. One GraphQL endpoint\n\n Saleor exposes the whole store through a typed GraphQL API. Put the React Storefront, a Next.js app or a mobile client in front. \n Django on real VMs\n\n Uvicorn workers on dedicated vCPUs, sized to your catalogue. No per-request pricing and no cold starts. \n Media through django-storages\n\n Set a handful of AWS_* variables and Saleor writes product images and thumbnails to Edge Storage over the S3 API. \n Celery without surprises\n\n Webhooks, emails and exports run on Celery backed by Redis, on the API VM or a worker VM of their own. \n Media and Dashboard at the edge\n\n Product images and the static Dashboard build are served from 2,206 locations, with image resizing from the URL. \n Multi-channel on one install\n\n Channels for different countries, currencies and warehouses share one Saleor deployment and one database. \n Reference architecture\n\n The Saleor API, with Postgres on a private network \n\n The API and worker on one VM, Postgres behind it on a private network, and two buckets that double as the CDN origin for media and the Dashboard. Visitors Storefronts\n\n React Storefront, Next.js, apps\n\n Visitors Staff\n\n Saleor Dashboard in the browser\n\n GraphQL Edge Compute uvicorn saleor.asgi\n\n Saleor 3 API on a Performance VM\n\n :8000 /graphql/ Worker celery worker\n\n webhooks, email, exports\n\n SQL and S3 Database postgres :5432\n\n saleor-db, PostgreSQL 16\n\n Cache redis :6379\n\n Celery broker, on the API VM\n\n Edge Storage saleor-media\n\n images and thumbnails\n\n products/ bucket origin Edge CDN media.acme.com\n\n ?width=&format=auto at the edge\n\n HIT 97% Edge CDN dashboard.acme.com\n\n static Dashboard build\n\n Compute Runs the Saleor API and Celery worker on one VM, and Postgres on another.\n\n Storage Holds media through django-storages, plus the static Dashboard build.\n\n CDN Serves product images and the Dashboard worldwide, straight from the buckets.\n\n Image optimisation Resizes and converts product images on request, alongside Saleor&#x27;s thumbnails.\n\n DNS Anycast DNS for api., dashboard., media. and shop. subdomains.\n\n Shield Scores signup and checkout mutations from your storefront&#x27;s server code.\n\n Assist A storefront sales assistant grounded in your own pages.\n\n Deploy\n\n Saleor from the official Docker image \n\n The official Saleor image runs both the API and the worker. Everything else is environment variables and two CDN domains. ~/acme-saleor $ edge compute create --name saleor \\ \n\n --size s-4vcpu-8gb --image ubuntu-24 \\\n\n --region london --script docker\n\n ✓ vm-6f20ad running at 64.34.86.70\n\n $ docker compose run --rm api \\ \n\n python3 manage.py migrate\n\n ✓ Migrations applied\n\n $ docker compose up -d api worker redis \n\n ✓ uvicorn saleor.asgi on :8000\n\n ✓ celery worker ready on the redis broker\n\n Per-request fees $0 api.acme.com Healthy API Saleor 3 on uvicorn Database Postgres 16 (private) 01 Create the database and API VMs\n\n Attach both to one private network and allow 5432 from that range only. The docker script installs Docker CE and Compose.\n\n shell Copy $ edge compute create --name saleor-db --size s-2vcpu-4gb \\\n --image ubuntu-24 --region london --script postgresql \\\n --script-param db_name=saleor\n\n$ edge compute create --name saleor --size s-4vcpu-8gb \\\n --image ubuntu-24 --region london --script docker \n 02 Configure Saleor\n\n Saleor reads its settings from the environment. The AWS_* variables switch media storage to Edge Storage.\n\n .env Copy DATABASE_URL=postgres://saleor:<pw>@10.185.0.2:5432/saleor\nCELERY_BROKER_URL=redis://redis:6379/1\nSECRET_KEY=<random>\nALLOWED_HOSTS=api.acme.com\nPUBLIC_URL=https://api.acme.com/\nAWS_MEDIA_BUCKET_NAME=saleor-media\nAWS_S3_ENDPOINT_URL=https://storage.edge.network\nAWS_ACCESS_KEY_ID=<edge-access-key>\nAWS_SECRET_ACCESS_KEY=<edge-secret-key>\nAWS_MEDIA_CUSTOM_DOMAIN=media.acme.com \n 03 Migrate and start the API and worker\n\n Both compose services use ghcr.io/saleor/saleor: api runs uvicorn saleor.asgi:application, worker runs celery --app saleor.celeryconf:app worker.\n\n shell Copy $ docker compose run --rm api python3 manage.py migrate\n$ docker compose run --rm api python3 manage.py createsuperuser\n$ docker compose up -d api worker redis \n 04 Host the Dashboard and media on the CDN\n\n Build the Dashboard with API_URL set to your GraphQL endpoint, sync it to a bucket, and serve both buckets through one deployment.\n\n shell Copy $ edge storage create saleor-dashboard\n$ edge storage sync ./build/dashboard saleor-dashboard/\n\n$ edge cdn create --name acme-saleor\n$ edge cdn domains add cdn-a1b2c3 --domain dashboard.acme.com \\\n --origin-type storage --storage-bucket saleor-dashboard\n$ edge cdn domains add cdn-a1b2c3 --domain media.acme.com \\\n --origin-type storage --storage-bucket saleor-media --jit-image \n Prefer to hand it off? Give the job to your AI agent or have our engineers do it .\n\n What it costs\n\n What Saleor&#x27;s backend costs a month \n\n Two VMs, a CDN deployment and two buckets. Host your storefront on another Standard VM, or wherever it lives today. No per-request or per-order fees \n Private traffic between VMs is free \n Payments settle directly with your gateway \n See compute pricing Estimated monthly bill on Edge\n\n Saleor API and Celery, Postgres on its own VM, ~150k visits a month\n\n USD API VM $38.47 Performance: 4 vCPU, 8 GiB for the Saleor API, Celery and Redis \n Database VM $19.24 Standard: 2 vCPU, 4 GiB for PostgreSQL 16 \n CDN $0.75 3.5M requests: first 500k free, then 3M × $0.25 per million \n Storage $0.45 35 GB of media and Dashboard: first 5 GB free, then 30 GB × $0.015 \n DNS $0.00 api., dashboard., media. and shop. records \n Egress $0.00 \n Total $58.91 FAQ\n\n GraphQL caching, storefronts and payments \n\n Something else? Ask an engineer . How does this compare to Saleor Cloud? Same open-source software, but you control the host. You get root access, a bill that doesn&#x27;t count requests, and the API, database and storefront on one private network. Which storefront should I use? Saleor&#x27;s React Storefront is a solid Next.js starting point. Any front end that can call a GraphQL endpoint works: Vue, Svelte, Astro or a mobile app. Can the CDN cache GraphQL responses? Saleor&#x27;s GraphQL queries are POST requests, which CDNs don&#x27;t cache. Cache query results in your storefront (Next.js fetch caching, for example) and let the CDN handle pages, media and the Dashboard. How do I deploy code updates? Pull the new image tag, run manage.py migrate, then restart the api and worker services. Wrap those three commands in a CI job once they work by hand. What about payments? Saleor&#x27;s payment apps for Stripe, Adyen and other gateways work as documented. Payment traffic runs between Saleor and the gateway, with no Edge involvement. Drop-in services\n\n Guard checkout mutations, answer pre-sales questions \n\n Edge Shield Bot protection POST /siteverify → score: 94 Guard signup and checkout mutations from bots with one check in your storefront&#x27;s server code.\n\n Free forever, with unlimited widgets. No puzzles for visitors. Explore \n Edge Assist AI answers <script src=\"…/assist.js\"> Give your storefront a sales assistant that answers from your own product and policy pages.\n\n Free tier: 250 answered questions a month Explore \n Related stacks\n\n Commerce peers, and the Django under Saleor \n\n All 38 stacks Shopify Hydrogen Self-host your Shopify storefront \n Medusa Modern headless commerce, Node.js-native \n Django Python web apps,...",
  "headings": [
    {
      "level": 1,
      "text": "Saleor&#x27;s GraphQL API and Celery on your own VMs"
    },
    {
      "level": 3,
      "text": "One GraphQL endpoint"
    },
    {
      "level": 3,
      "text": "Django on real VMs"
    },
    {
      "level": 3,
      "text": "Media through django-storages"
    },
    {
      "level": 3,
      "text": "Celery without surprises"
    },
    {
      "level": 3,
      "text": "Media and Dashboard at the edge"
    },
    {
      "level": 3,
      "text": "Multi-channel on one install"
    },
    {
      "level": 3,
      "text": "Create the database and API VMs"
    },
    {
      "level": 3,
      "text": "Configure Saleor"
    },
    {
      "level": 3,
      "text": "Migrate and start the API and worker"
    },
    {
      "level": 3,
      "text": "Host the Dashboard and media on the CDN"
    },
    {
      "level": 2,
      "text": "Take Saleor off the request meter"
    }
  ],
  "relatedLinks": [
    {
      "@type": "WebPage",
      "name": "Network",
      "url": "https://edge.network/network"
    },
    {
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://edge.network/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Docs",
      "url": "https://edge.network/docs"
    },
    {
      "@type": "WebPage",
      "name": "Sign in",
      "url": "https://edge.network/console/access"
    },
    {
      "@type": "WebPage",
      "name": "Solutions",
      "url": "https://edge.network/solutions"
    },
    {
      "@type": "WebPage",
      "name": "Stacks",
      "url": "https://edge.network/solutions/stacks"
    },
    {
      "@type": "WebPage",
      "name": "See how we host Django",
      "url": "https://edge.network/solutions/django"
    },
    {
      "@type": "WebPage",
      "name": "Compute",
      "url": "https://edge.network/compute"
    },
    {
      "@type": "WebPage",
      "name": "Storage",
      "url": "https://edge.network/storage"
    },
    {
      "@type": "WebPage",
      "name": "CDN",
      "url": "https://edge.network/cdn"
    },
    {
      "@type": "WebPage",
      "name": "Image optimisation",
      "url": "https://edge.network/docs/cdn/image-optimization"
    },
    {
      "@type": "WebPage",
      "name": "DNS",
      "url": "https://edge.network/dns"
    },
    {
      "@type": "WebPage",
      "name": "Shield",
      "url": "https://edge.network/shield"
    },
    {
      "@type": "WebPage",
      "name": "Assist",
      "url": "https://edge.network/assist"
    },
    {
      "@type": "WebPage",
      "name": "Give the job to your AI agent",
      "url": "https://edge.network/solutions/agentic-development"
    },
    {
      "@type": "WebPage",
      "name": "have our engineers do it",
      "url": "https://edge.network/solutions/expert-services"
    },
    {
      "@type": "WebPage",
      "name": "See compute pricing",
      "url": "https://edge.network/compute/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Ask an engineer",
      "url": "https://edge.network/contact"
    },
    {
      "@type": "WebPage",
      "name": "Pulse",
      "url": "https://edge.network/pulse"
    },
    {
      "@type": "WebPage",
      "name": "Agent API &amp; MCP",
      "url": "https://edge.network/docs/agent"
    },
    {
      "@type": "WebPage",
      "name": "Academy",
      "url": "https://edge.network/academy"
    },
    {
      "@type": "WebPage",
      "name": "Case Studies",
      "url": "https://edge.network/case-studies"
    },
    {
      "@type": "WebPage",
      "name": "Releases",
      "url": "https://edge.network/releases"
    },
    {
      "@type": "WebPage",
      "name": "Roadmap",
      "url": "https://edge.network/roadmap"
    },
    {
      "@type": "WebPage",
      "name": "Status",
      "url": "https://edge.network/status"
    },
    {
      "@type": "WebPage",
      "name": "About",
      "url": "https://edge.network/about"
    },
    {
      "@type": "WebPage",
      "name": "Environment",
      "url": "https://edge.network/environment"
    },
    {
      "@type": "WebPage",
      "name": "Latest",
      "url": "https://edge.network/latest"
    },
    {
      "@type": "WebPage",
      "name": "Blog",
      "url": "https://edge.network/blog"
    },
    {
      "@type": "WebPage",
      "name": "Careers",
      "url": "https://edge.network/careers"
    }
  ],
  "alternateFormats": [
    {
      "@type": "MediaObject",
      "contentType": "text/html",
      "url": "https://edge.network/solutions/saleor",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-11-23T02:00:49.431Z"
}