elestio4test castopod Docker Image
365
A better community platform for the modern web.
Castopod is a Hosting Platform for Podcasters Engage with Content.
Deploy a fully managed Castopod on elest.io Application for Podcasters Engage with their Content with Others.
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
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
| Variable | Value (example) |
|---|---|
| BASE_URL | [CICD_DOMAIN] |
| CP_EMAIL_SMTP_HOST | URL |
| CP_EMAIL_FROM | Mail ID |
| CP_EMAIL_SMTP_USERNAME | UserName |
| CP_EMAIL_SMTP_PASSWORD | Password |
| CP_EMAIL_SMTP_PORT | Port |
| CP_EMAIL_SMTP_CRYPTO | Mail ID |
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
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.
Content type
Image
Digest
sha256:5d1d71208…
Size
418.9 MB
Last updated
about 3 years ago
docker pull elestio4test/castopod