Deploy CKAN

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

Deploy CKAN

/var/lib/postgresql/data

/var/lib/ckan

Just deployed

Just deployed

/data

/var/solr

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

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.


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0