Self-host Castopod with Levelrail

An open-source podcast hosting platform with built-in analytics, a web player, and ActivityPub federation.

  • Authorad-aures
  • LicenceAGPL-3.0-or-later
  • Memory1 GiB
  • Archarm64
  • Services3

How to self-host Castopod

  1. Pull the images

    3 images are pulled on your server.

    Show images
    • castopod/castopod:1.15.4
    • mariadb:11.2
    • redis:7.2-alpine
  2. Create the app

    3 services start in a single Compose app, with 3 named volume mounts for your data, on port 8080.

  3. Fill in the secrets

    8 secrets are generated and stored encrypted, 6 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Castopod requirements

Memory
About 1 GiB
Architectures
amd64 image published, arm64 image published
Ports
8080
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
AGPL-3.0-or-later, network copyleft (agpl) license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes port 8080 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Castopod. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Castopod docs page.

Deploy Castopod your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Castopod from the CLI

levelrail-cli templates deploy castopod --name my-castopod

Deploy Castopod with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/castopod/deploy

Castopod configuration

Castopod services

ServiceImagePortsVolumes
castopod castopod/castopod:1.15.4 8080 castopod_media -> /var/www/castopod/public/media
mariadb mariadb:11.2 none castopod_db -> /var/lib/mysql
redis redis:7.2-alpine none castopod_cache -> /data

Castopod environment variables

VariableServiceValue
CP_ANALYTICS_SALT castopod Generated at deploy
CP_BASEURL castopod Preset by the template
CP_CACHE_HANDLER castopod Preset by the template
CP_DISABLE_HTTPS castopod Preset by the template
CP_REDIS_HOST castopod Preset by the template
CP_REDIS_PASSWORD castopod Generated at deploy
MYSQL_DATABASE castopod Preset by the template
MYSQL_PASSWORD castopod Generated at deploy
Show all 14 variables
  • MYSQL_USERcastopodGenerated at deploy
  • MYSQL_DATABASEmariadbPreset by the template
  • MYSQL_PASSWORDmariadbGenerated at deploy
  • MYSQL_ROOT_PASSWORDmariadbGenerated at deploy
  • MYSQL_USERmariadbGenerated at deploy
  • REDIS_PASSWORDredisGenerated at deploy

Ports and volumes

Ports
8080
Volumes
3 named mounts: castopod_media -> /var/www/castopod/public/media, castopod_db -> /var/lib/mysql, castopod_cache -> /data

Castopod FAQ

How much memory does Castopod need?

The catalog lists about 1 GiB of memory for Castopod across its 3 services.

Does Castopod run on arm64?

For Castopod, an arm64 image is published; amd64 is image published.

What licence is Castopod under?

Castopod is licensed under AGPL-3.0-or-later, which is network copyleft, so source sharing also applies when it is offered as a hosted service.

Does Castopod need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Castopod bundle?

The template includes MySQL and Redis, running as its own service.

Which ports does Castopod use?

Castopod listens on port 8080 inside the stack.

Where does Castopod keep its data?

In named volumes: castopod_media mounted at /var/www/castopod/public/media, castopod_db mounted at /var/lib/mysql and castopod_cache mounted at /data.

Can I deploy Castopod on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Castopod, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image castopod/castopod:1.15.4, mariadb:11.2, redis:7.2-alpine is what you deploy there.

levelrail-cli templates deploy castopod --name my-castopod