add castopod service

This commit is contained in:
Andras Bacsai
2024-10-10 13:28:51 +02:00
parent 9330a3f354
commit 12facc9e5c
3 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
# documentation:https://docs.castopod.org/main/en/
# slogan: Castopod is a free & open-source hosting platform made for podcasters who want engage and interact with their audience.
# tags: podcast, media, audio, video, streaming, hosting, platform, castopod
# logo: svgs/castopod.svg
# port: 8000
services:
castopod:
image: castopod/castopod:latest
volumes:
- castopod-media:/var/www/castopod/public/media
environment:
- SERVICE_FQDN_CASTOPOD_8000
- MYSQL_DATABASE=castopod
- MYSQL_USER=$SERVICE_USER_MYSQL
- MYSQL_PASSWORD=$SERVICE_PASSWORD_MYSQL
- CP_DISABLE_HTTPS=${CP_DISABLE_HTTPS:-1}
- CP_BASEURL=$SERVICE_FQDN_CASTOPOD
- CP_ANALYTICS_SALT=$SERVICE_REALBASE64_64_SALT
- CP_CACHE_HANDLER=redis
- CP_REDIS_HOST=redis
- CP_REDIS_PASSWORD=$SERVICE_PASSWORD_REDIS
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:8000/health"
]
interval: 5s
timeout: 20s
retries: 10
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
mariadb:
image: mariadb:11.2
volumes:
- castopod-db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_MYSQL
- MYSQL_DATABASE=castopod
- MYSQL_USER=$SERVICE_USER_MYSQL
- MYSQL_PASSWORD=$SERVICE_PASSWORD_MYSQL
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 20s
retries: 10
redis:
image: redis:7.2-alpine
command: --requirepass $SERVICE_PASSWORD_REDIS
volumes:
- castopod-cache:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli -a $SERVICE_PASSWORD_REDIS ping | grep PONG"]
interval: 5s
timeout: 20s
retries: 10