Skip to content

Zvanične Docker slike

Castopod gura 3 Docker slike u Docker Hub tokom njegovog automatizovanog procesa izrade:

Additionally, Castopod requires a MySQL-compatible database. A Redis database can be added as a cache handler.

Podržani tagovi

  • develop [nestabilno], najnoviji razvojni ogranak
  • beta [stabilno], poslednja beta verzija
  • latest [stabilno], poslednja verzija
  • 1.x.x [stabilno], specifična verzija (od 1.0.0)

Primer upotrebe

  1. Instalirajte docker i docker-compose

  2. Napravite docker-compose.yml datoteku sa sledećim:

    version: "3.7"
    services:
    app:
    image: castopod/castopod:latest
    container_name: "castopod-app"
    volumes:
    - castopod-media:/var/www/castopod/public/media
    environment:
    MYSQL_DATABASE: castopod
    MYSQL_USER: castopod
    MYSQL_PASSWORD: changeme
    CP_BASEURL: "https://castopod.example.com"
    CP_ANALYTICS_SALT: changeme
    CP_CACHE_HANDLER: redis
    CP_REDIS_HOST: redis
    CP_REDIS_PASSWORD: changeme
    networks:
    - castopod-app
    - castopod-db
    ports:
    - 8000:8000
    restart: unless-stopped
    mariadb:
    image: mariadb:10.5
    container_name: "castopod-mariadb"
    networks:
    - castopod-db
    volumes:
    - castopod-db:/var/lib/mysql
    environment:
    MYSQL_ROOT_PASSWORD: changeme
    MYSQL_DATABASE: castopod
    MYSQL_USER: castopod
    MYSQL_PASSWORD: changeme
    restart: unless-stopped
    redis:
    image: redis:7.0-alpine
    container_name: "castopod-redis"
    command: --requirepass changeme
    volumes:
    - castopod-cache:/data
    networks:
    - castopod-app
    volumes:
    castopod-media:
    castopod-db:
    castopod-cache:
    networks:
    castopod-app:
    castopod-db:

    Morate prilagoditi neke varijable svojim potrebama (npr. CP_BASEURL, MYSQL_ROOT_PASSWORD, MYSQL_PASSWORD and CP_ANALYTICS_SALT).

  3. Podesite obrnuti proksi za TLS (SSL/HTTPS)

    TLS is mandatory for ActivityPub to work. This job can easily be handled by a reverse proxy, for example with Caddy:

    #castopod
    castopod.example.com {
    reverse_proxy localhost:8000
    }
  4. Pokrenite docker-compose up -d, sačekajte da se pokrene i idite na https://castopod.example.com/cp-install da biste završili instalaciju Castopod-a!

  5. You’re all set, start podcasting! 🎙️🚀

Promenljive okruženja

  • castopod/castopod i castopod/app

    Naziv promenljiveVrsta (uobičajeno)Podrazumevano
    CP_BASEURLstringnedefinisano
    CP_MEDIA_BASEURL?stringCP_BASEURL
    CP_ADMIN_GATEWAY?string"cp-admin"
    CP_AUTH_GATEWAY?string"cp-auth"
    CP_ANALYTICS_SALTstringnedefinisano
    CP_DATABASE_HOSTNAME?string"mariadb"
    CP_DATABASE_NAME?stringMYSQL_DATABASE
    CP_DATABASE_USERNAME?stringMYSQL_USER
    CP_DATABASE_PASSWORD?stringMYSQL_PASSWORD
    CP_DATABASE_PREFIX?string"cp_"
    CP_CACHE_HANDLER["datoteka" ili "redis"]"file"
    CP_REDIS_HOST?string"localhost"
    CP_REDIS_PASSWORD?stringnull
    CP_REDIS_PORT?number6379
    CP_REDIS_DATABASE?number0
    CP_EMAIL_SMTP_HOST?stringnedefinisano
    CP_EMAIL_FROM?stringnedefinisano
    CP_EMAIL_SMTP_USERNAME?string"localhost"
    CP_EMAIL_SMTP_PASSWORD?stringnull
    CP_EMAIL_SMTP_PORT?number25
    CP_EMAIL_SMTP_CRYPTO["tls" ili "ssl"]"tls"
    CP_ENABLE_2FA?booleannedefinisano
    CP_MEDIA_FILE_MANAGER?stringnedefinisano
    CP_MEDIA_S3_ENDPOINT?stringnedefinisano
    CP_MEDIA_S3_KEY?stringnedefinisano
    CP_MEDIA_S3_SECRET?stringnedefinisano
    CP_MEDIA_S3_REGION?stringnedefinisano
    CP_MEDIA_S3_BUCKET?stringnedefinisano
    CP_MEDIA_S3_PROTOCOL?numbernedefinisano
    CP_MEDIA_S3_PATH_STYLE_ENDPOINT?booleannedefinisano
    CP_MEDIA_S3_KEY_PREFIX?stringnedefinisano
    CP_DISABLE_HTTPS?[0 ili 1]nedefinisano
    CP_MAX_BODY_SIZE?number (sa sufiksom)512M
    CP_PHP_MEMORY_LIMIT?number (sa sufiksom)512M
    CP_TIMEOUT?number900
  • castopod/veb server

    Naziv promenljiveVrstaPodrazumevano
    CP_APP_HOSTNAME?string"app"
    CP_MAX_BODY_SIZE?number (sa sufiksom)512M
    CP_TIMEOUT?number900