Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions blueprints/castopod/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Castopod

Castopod is a free, open-source podcast hosting platform made for podcasters who want to engage and interact with their audience. Publish your podcast and episodes, follow download analytics, let listeners comment and share, and federate with the Fediverse over ActivityPub — with Podcasting 2.0 features (transcripts, chapters, funding, value4value…) built in.

## How this deployment works

This template deploys Castopod's **official Docker image** (`castopod/castopod`) with the two services it needs, following the upstream Docker guide:

- **castopod** — the app itself (FrankenPHP/Caddy all-in-one image), listening on port 8080 internally; your Dokploy domain terminates HTTPS in front of it.
- **mariadb** — the MySQL-compatible database Castopod requires.
- **redis** — used as the cache handler, as recommended upstream.

Uploaded media (audio files, cover art) is stored in the `castopod-media` volume; the database lives in `castopod-db`.

All passwords (database user, database root, Redis) and the analytics salt are **generated by Dokploy at deploy time** — there is nothing to fill in before deploying.

## First run

1. Deploy the template and wait until the `castopod` service is healthy (the first boot runs the database migrations).
2. Open `https://your-domain/cp-install` in your browser.
3. Create the super admin account and finish the installation wizard — after that, the installer page locks itself and you can sign in and create your first podcast.

## Notes

- HTTPS is mandatory for ActivityPub federation to work; Dokploy provides it automatically on your domain.
- Email sending is optional: to enable it, add the `CP_EMAIL_*` variables (SMTP host, from address, credentials) to the stack's environment in Dokploy and redeploy.
- To store media on S3 instead of the local volume, set the `CP_MEDIA_S3_*` variables in the stack's environment.
1 change: 1 addition & 0 deletions blueprints/castopod/castopod.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions blueprints/castopod/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
services:
castopod:
image: castopod/castopod:1.15.7
restart: unless-stopped
depends_on:
mariadb:
condition: service_healthy
restart: true
redis:
condition: service_started
environment:
- MYSQL_DATABASE=castopod
- MYSQL_USER=castopod
- MYSQL_PASSWORD=${DB_PASSWORD}
- CP_BASEURL=${CP_BASEURL}
- CP_ANALYTICS_SALT=${ANALYTICS_SALT}
- CP_CACHE_HANDLER=redis
- CP_REDIS_HOST=redis
- CP_REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- castopod-media:/app/public/media
expose:
- "8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s

mariadb:
image: mariadb:12.1
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=castopod
- MYSQL_USER=castopod
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- castopod-db:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3

redis:
image: redis:8.4-alpine
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- castopod-cache:/data

volumes:
castopod-media:
castopod-db:
castopod-cache:
1 change: 1 addition & 0 deletions blueprints/castopod/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"description":"Castopod is a free, open-source podcast hosting platform made for podcasters who want to engage and interact with their audience: publish episodes, follow download analytics, and federate with the Fediverse over ActivityPub, with Podcasting 2.0 features built in.","id":"castopod","links":{"docs":"https://docs.castopod.org","github":"https://github.com/ad-aures/castopod","website":"https://castopod.org"},"logo":"castopod.svg","name":"Castopod","newConfig":true,"seoDescription":"Deploy Castopod with Docker Compose on Dokploy \u2014 the open-source podcast hosting platform with MariaDB, Redis, Fediverse federation and Podcasting 2.0 support.","seoTitle":"Castopod Docker Compose Setup","tags":["podcast","media","fediverse","publishing"],"version":"1.15.7"}
21 changes: 21 additions & 0 deletions blueprints/castopod/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[variables]
main_domain = "${domain}"
db_password = "${password:32}"
db_root_password = "${password:32}"
redis_password = "${password:32}"
analytics_salt = "${password:64}"

[config]
env = [
"CP_BASEURL=https://${main_domain}",
"DB_PASSWORD=${db_password}",
"DB_ROOT_PASSWORD=${db_root_password}",
"REDIS_PASSWORD=${redis_password}",
"ANALYTICS_SALT=${analytics_salt}",
]
mounts = []

[[config.domains]]
serviceName = "castopod"
port = 8080
host = "${main_domain}"
Loading