# Self-host Castopod

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

- Page: https://levelrail.com/templates/castopod/
- JSON: https://levelrail.com/templates/castopod.json
- Category: Media
- Licence: AGPL-3.0-or-later (Network copyleft (AGPL) license)
- Source: https://github.com/ad-aures/castopod
- Upstream docs: https://docs.castopod.org/

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 1.15.4

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| 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 |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| castopod | CP_ANALYTICS_SALT | generated |
| castopod | CP_BASEURL | preset |
| castopod | CP_CACHE_HANDLER | preset |
| castopod | CP_DISABLE_HTTPS | preset |
| castopod | CP_REDIS_HOST | preset |
| castopod | CP_REDIS_PASSWORD | generated |
| castopod | MYSQL_DATABASE | preset |
| castopod | MYSQL_PASSWORD | generated |
| castopod | MYSQL_USER | generated |
| mariadb | MYSQL_DATABASE | preset |
| mariadb | MYSQL_PASSWORD | generated |
| mariadb | MYSQL_ROOT_PASSWORD | generated |
| mariadb | MYSQL_USER | generated |
| redis | REDIS_PASSWORD | generated |

## Deploy

### CLI

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

### API

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

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

## Questions

### 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.

Self-host Castopod, Castopod docker compose file, deploy Castopod on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
