---
title: "Deploy CKAN"
description: "CKAN 2.12 open data portal with Solr search, DataPusher, Postgres, Redis"
category: "Other"
url: https://railway.com/deploy/ckan
---

# Deploy CKAN

CKAN 2.12 open data portal with Solr search, DataPusher, Postgres, Redis

**[Deploy CKAN on Railway](https://railway.com/template/ckan)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/ckan/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### ckan https://cdn.jsdelivr.net/gh/ckan/ckan.org@d857289e1dee5009f0c527366b0a9d3204f2e726/ckanorg/static/img/ckan-logo.png

- **Source:** https://github.com/aalfath/ckan-railway-template
- **Health check:** /api/3/action/status_show
- **Public domain:** Yes

### datapusher https://cdn.jsdelivr.net/gh/ckan/ckan.org@d857289e1dee5009f0c527366b0a9d3204f2e726/ckanorg/static/img/ckan-logo.png

- **Source:** https://github.com/aalfath/ckan-railway-template
- **Health check:** /status

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### solr https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/apache-solr.png

- **Source:** https://github.com/aalfath/ckan-railway-template
- **Health check:** /solr/ckan/admin/ping

## Documentation

# Deploy and Host CKAN on Railway

CKAN is an open-source data portal used by governments, cities and research bodies to publish, share and find datasets. It gives you a searchable catalogue with organisations, dataset pages, file uploads, data previews and a full JSON API. This template runs CKAN 2.12.1 from the official images, licensed AGPL-3.0.

## About Hosting CKAN

CKAN needs more than a web server: PostgreSQL for the catalogue and table data, Solr for search, Redis for caching and jobs, and DataPusher to load CSV and Excel files into the DataStore. This template runs all five as Railway services on the private network, each stateful one on its own volume. On every start CKAN creates its database roles and databases if they are missing, runs migrations, sets the DataStore permissions and creates the sysadmin account from generated variables, so nothing has to be typed in. The public URL works on the first deploy, and every service fits in 0.5 GB of RAM.

## Common Use Cases

* Run an open data portal for a government, city or public agency
* Publish and share research datasets with search, previews and an API
* Keep an internal catalogue of an organisation's datasets and files

## Dependencies for CKAN Hosting

* PostgreSQL (Railway's PostgreSQL service)
* Solr with CKAN's schema, Redis and DataPusher (all included)

### Deployment Dependencies

* CKAN source and docs: https://github.com/ckan/ckan and https://docs.ckan.org
* CKAN 2.12.1 release: https://github.com/ckan/ckan/releases/tag/ckan-2.12.1
* Official Docker images: https://github.com/ckan/ckan-docker
* Template repository: https://github.com/aalfath/ckan-railway-template

### Implementation Details

Services in this template:

* **ckan** (public): the CKAN web app and API (official `ckan/ckan-base:2.12.1`), run by uWSGI. Uploaded files live on a volume at `/var/lib/ckan`. Health check `/api/3/action/status_show`.
* **solr**: the search index, Solr 9.9 with CKAN's 2.12 schema, on a volume at `/var/solr`. Private only.
* **datapusher**: DataPusher 0.0.21, which loads uploaded CSV and Excel files into the DataStore for previews and the data API. Private only.
* **Postgres**: two databases, `ckan` (catalogue, users, organisations) and `datastore` (table data), on a volume.
* **Redis**: CKAN's cache and background-job queue, on a volume.

After deploy, open the `ckan` service's public URL and log in as `admin`. The password is the `ADMIN_PASSWORD` variable on the `ckan` service. Change the password and the email address (`admin@example.com` by default) on your user page, create an organisation, then add datasets. Self-registration is off; the sysadmin creates accounts. Email and any other CKAN setting can be added later as variables on `ckan` (`CKAN_SMTP_SERVER`, or the `CKAN__SECTION__KEY` form), as described in the template repo's README. For your own domain, add it under the `ckan` service's Networking settings and set `CKAN_SITE_URL` to `https://YOUR-DOMAIN`.

Each service runs within 0.5 GB RAM / 1 vCPU (tested: ckan about 0.37 GB at peak, Solr about 0.27 GB, the rest under 0.15 GB). Every app service builds from the template's GitHub repo with images pinned by version and digest. When we release a new version there, Railway shows an update notice on your project; read the CHANGELOG, back up Postgres, then apply it. Migrations run automatically on the next start.

## Why Deploy CKAN on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying CKAN on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/ckan
