Sign inSign up

elestio4test/castopod

By elestio4test

Updated about 3 years ago

elestio4test castopod Docker Image

Image
0

365

elestio4test/castopod repository overview

elest.io

Discord Elestio examples Blog

Castopod, verified and packaged by Elestio

A better community platform for the modern web.

Castopod is a Hosting Platform for Podcasters Engage with Content.

outline

Deploy a fully managed Castopod on elest.io Application for Podcasters Engage with their Content with Others.

deploy

Why use Elestio images?

  • Elestio stays in sync with updates from the original source and quickly releases new versions of this image through our automated processes.
  • Elestio images provide timely access to the most recent bug fixes and features.
  • Our team performs quality control checks to ensure the products we release meet our high standards.

Usage

Git clone

You can deploy it easily with the following command:

git clone https://github.com/elestio-examples/castopod.git

Copy the .env file from tests folder to the project directory

cp ./tests/.env ./.env

Edit the .env file with your own values.

Run the project with the following command

docker-compose up -d

You can access the Web UI at: http://your-domain:8989

Docker-compose

Here are some example snippets to help you get started creating a container.

    version: "3.3"
    services:
    app:
        image: elestio4test/castopod:latest
        user: 0:0
        volumes:
        - castopod-media:/opt/castopod/public/media
        - ./data:/castopod
        environment:
        MYSQL_DATABASE: castopod
        MYSQL_USER: castopod
        MYSQL_PASSWORD: changeme
        CP_BASEURL: "https://${BASE_URL}"
        CP_ANALYTICS_SALT: changeme
        CP_CACHE_HANDLER: redis
        CP_REDIS_HOST: redis
        CP_EMAIL_SMTP_HOST: ${CP_EMAIL_SMTP_HOST}
        CP_EMAIL_FROM: ${CP_EMAIL_FROM}
        CP_EMAIL_SMTP_USERNAME: ${CP_EMAIL_SMTP_USERNAME}
        CP_EMAIL_SMTP_PASSWORD: ${CP_EMAIL_SMTP_PASSWORD}
        CP_EMAIL_SMTP_PORT: ${CP_EMAIL_SMTP_PORT}
        CP_EMAIL_SMTP_CRYPTO: ${CP_EMAIL_SMTP_CRYPTO}
        restart: always

    web-server:
        image: castopod/web-server:latest
        volumes:
        - castopod-media:/var/www/html/media
        ports:
        - 172.17.0.1:8989:80
        restart: always

    mariadb:
        image: mariadb:10.5
        volumes:
        - ./castopod-db:/var/lib/mysql
        environment:
        MYSQL_ROOT_PASSWORD: changeme
        MYSQL_DATABASE: castopod
        MYSQL_USER: castopod
        MYSQL_PASSWORD: changeme
        restart: always

    redis:
        image: redis:7.0-alpine
        volumes:
        - ./castopod-cache:/data

    volumes:
    castopod-media:
        driver: local
        driver_opts:
        type: none
        device: ${PWD}/data
        o: bind
Environment variables
VariableValue (example)
BASE_URL[CICD_DOMAIN]
CP_EMAIL_SMTP_HOSTURL
CP_EMAIL_FROMMail ID
CP_EMAIL_SMTP_USERNAMEUserName
CP_EMAIL_SMTP_PASSWORDPassword
CP_EMAIL_SMTP_PORTPort
CP_EMAIL_SMTP_CRYPTOMail ID

Maintenance

Logging

The Elestio CastoPod Docker image sends the container logs to stdout. To view the logs, you can use the following command:

docker-compose logs -f

To stop the stack you can use the following command:

docker-compose down

Backup and Restore with Docker Compose

To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.

Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:

zip -r myarchive.zip .

Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:

unzip myarchive.zip -d /path/to/original/folder

Starting Your Stack Once your backup is complete, you can start your stack again with the following command:

docker-compose up -d

That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.

Tag summary

Content type

Image

Digest

sha256:5d1d71208

Size

418.9 MB

Last updated

about 3 years ago

docker pull elestio4test/castopod