---
title: "Containers and Hosting"
description: "Deploy from Docker and Compose, self-host open-source tools, and scale across replicas and regions."
url: https://railway.com/guides/topics/containers
guides: 21
last_updated: 2026-11-05T19:03:20.621Z
---

# Containers and Hosting

Deploy from Docker and Compose, self-host open-source tools, and scale across replicas and regions.

## Get started

1. [Deploy from a Private Container Registry](https://railway.com/guides/private-container-registry.md): Deploy Docker images from private registries (GHCR, Docker Hub, GitLab, ECR, Google Artifact Registry) on Railway, from credential setup to CI-driven redeploys.
2. [Self-Host Langfuse for LLM Observability](https://railway.com/guides/langfuse-llm-observability.md): Deploy Langfuse v3 on Railway with Postgres, ClickHouse, Redis, and object storage. Trace, debug, and evaluate your LLM applications on infrastructure you control.
3. [Self-Host Keycloak for Authentication](https://railway.com/guides/keycloak-authentication.md): Deploy Keycloak on Railway with a Postgres database, an admin account, and a public domain. Configure a realm and an OIDC client for your applications.

## Build and deploy

- [Self-host Supabase with Postgres, Auth, and Storage](https://railway.com/guides/supabase.md): Deploy the Supabase stack on Railway with Postgres, GoTrue auth, PostgREST API, storage, and the Studio dashboard. Covers multi-service setup and JWT configuration.
- [Self-host Strapi with Postgres and File Uploads](https://railway.com/guides/strapi.md): Deploy Strapi on Railway with a Postgres database and persistent file storage. Covers one-click template deployment, environment configuration, and upload provider setup.
- [Self-host Payload CMS with Postgres](https://railway.com/guides/payload-cms.md): Deploy Payload CMS 3.x on Railway inside a Next.js application. Covers database setup, media storage with buckets, and production configuration.
- [Self-Host Open WebUI](https://railway.com/guides/open-webui.md): Deploy Open WebUI on Railway to get a ChatGPT-like interface that connects to OpenAI, Anthropic, and other LLM providers. Includes persistent storage and authentication setup.
- [Self-Host Flowise](https://railway.com/guides/flowise.md): Deploy Flowise on Railway with persistent storage and authentication. Build LLM chains, agents, and chatbots through a visual drag-and-drop interface without managing servers.
- [Self-Host Dify](https://railway.com/guides/dify.md): Deploy Dify on Railway with Postgres, Redis, and persistent storage. Build AI applications, RAG pipelines, and agent workflows through Dify's visual interface.
- [Run Playwright in a Docker Container](https://railway.com/guides/playwright.md): Deploy Playwright scripts on Railway using a Docker container with browser dependencies, font packages, and memory configuration.
- [Deploy a Docker Compose App to Production](https://railway.com/guides/docker-compose.md): Map a Docker Compose configuration to Railway services. Covers service mapping, networking, volumes, environment variables, and databases.
- [Deploy Offen on Railway](https://railway.com/guides/offen-web-analytics.md): Offen is an open-source, lightweight, and free analytics solution. In this post, we’ll deploy an Offen instance connected to a PostgreSQL database on Railway!
- [Deploy Authorizer on Railway](https://railway.com/guides/authorizer.md): In this post, we go over the process of deploying Authorizer (an open-source authentication and authorization solution) instance on Railway!
- [Self-hosted website analytics](https://railway.com/guides/self-hosted-website-analytics.md): In this post, we talk about self-hosted alternatives to Google Analytics, why you should be using them instead and how you'd go about deploying them on Railway!

## Run in production

- [How to Deploy and Scale Docker Containers on Railway in 2026](https://railway.com/guides/deploy-scale-docker-containers-railway.md): Deploy a Docker container on Railway from a Dockerfile or a pre-built image, then learn how Railway builds and caches images, how to scale with replica limits and regions, what Docker workloads cost, and how to troubleshoot failed deployments.
- [Self-Host Uptime Kuma for Uptime Monitoring](https://railway.com/guides/uptime-kuma.md): Deploy Uptime Kuma on Railway with a volume for persistent monitor history. Monitor public sites and internal services, and publish status pages.
- [Autoscale a Service Horizontally Based on Load](https://railway.com/guides/autoscale-horizontally.md): Build an autoscaler on Railway that measures load in your application and adjusts replica counts through the Public API, the CLI, or a cron schedule.
- [Scaling Your Application](https://railway.com/guides/scaling-your-application.md): Learn how to scale applications on Railway with vertical autoscaling and horizontal replicas, and how to read metrics to right-size each service.

## Compare and decide

- [Handle Build-Time vs Runtime Secrets in Docker Builds](https://railway.com/guides/build-time-vs-runtime-secrets.md): When Docker builds on Railway can see your variables, how to pass build secrets with ARG, and why runtime secrets should never be baked into the image.
- [The Best Container Registries in 2026](https://railway.com/guides/best-container-registries-2026.md): Container registries are the under-thought-about piece of cloud infrastructure. The six jobs a real registry has to do, and an honest ranking of the platforms in 2026.
- [Serverless functions vs containers: CI/CD, database connections, cron jobs, and long-running tasks](https://railway.com/guides/serverless-functions-vs-containers-cicd-database-connections-cron-jobs-and-long-running-tasks.md): Comparing serverless and container deployments about auto-deploy workflows, secure database connections, scheduled jobs, rollbacks, and resource-intensive tasks. Each section explains both approaches honestly, with guidance on when serverless constraints matter and when containers make more sense.

## Related topics

- [Storage](https://railway.com/guides/topics/storage.md): Run Postgres, Redis, MySQL and object storage on Railway: pooling, backups, migrations and vector search.
- [AI Agents](https://railway.com/guides/topics/ai.md): Host agents, MCP servers, RAG pipelines, model gateways and inference services.
- [Analytics](https://railway.com/guides/topics/analytics.md): Logs, metrics, traces and alerts, plus product analytics and ML workloads.
- [Security](https://railway.com/guides/topics/security.md): Manage secrets, add authentication, lock down projects and meet compliance requirements.
- [Frontend](https://railway.com/guides/topics/frontend.md): Ship Next.js, Astro, SvelteKit and SPAs, and run Node.js, Bun and full-stack TypeScript apps.
- [Comparisons and Migrations](https://railway.com/guides/topics/comparisons.md): How Railway compares with other platforms, what it costs, and how to move over from Heroku, AWS and others.
