add castopod service
This commit is contained in:
63
templates/compose/castopod.yaml
Normal file
63
templates/compose/castopod.yaml
Normal 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
|
||||
Reference in New Issue
Block a user